Doug.

Is your tomcat on port 80 or port 8080 ...

You say 
> If I try http://192.168.1.100:8080/, it works.
Does http://192.168.1.100/ (i.e. default http port 80 equivalent to
http://192.168.1.100:80/) work ?


If both the above work, what is at port 80? IIS ? Apache? 
and what are you using to 'route' between post 80 and port 8080?
Is that configured OK to work with your public IP address?

If there's not 'routing' between 80 and 8080 

Then, does http://thepublicipaddress:8080/ work - (this may well have
been stopped by the isp's firewall).

If it does, you may want to start tomcat on port 80 ??

Look in conf/server.xml for line that starts 

    <Connector port="8080"

and change it to 

    <Connector port="80"

Hope this helps.

Christopher

> -----Original Message-----
> From: Ted Anagnost [mailto:[EMAIL PROTECTED] 
> Sent: 24 March 2004 08:58
> To: Tomcat Users List
> Subject: Re: http://localhost/ works but http://<ip address>/ doesn't
> 
> 
> Hello Doug,
> 
> > Last thing first. I did find you can set the IP with address=??? in 
> > the server.xml. Check for this. Unless you have a specific 
> need to you 
> > can remove it.
> 
> It's not there.  Another thing is I tried to ping the 
> computer again from a different external computer and got 
> back no response.  The first ping attempt was actually from a 
> Linksys support person who said ping worked but I can't 
> verify that personally of course.  I can send you my IP in 
> email if you're willing to try that too (what email address?).
> 
> >
> > Now in case that is not the issue:
> >
> > > > Sitting at you windows box that is running TC you can 
> open IE and
> access
> > > > http://localhost but if you try to access 
> http://yourMachinesIP it
> > fails.
> > >
> > > Right
> > >
> > You keep mentioning the linksys, so I have to ask, are you 
> trying to 
> > use
> the
> > actual IP of you machine (192.168.1.100) or the public IP 
> assigned to 
> > the Internet side of the Linksys (assuming it is connected to the 
> > Internet)?
> 
> The public IP.  If I try http://192.168.1.100:8080/, it works.
> 
> >
> >
> > > > From a command prompt ping localhost. Then ping the IP of your
> machine.
> > >
> > > Both return a response.  I'm using the Linksys router 
> BEFSR41 with 
> > > port forwarding enabled for port 80.
> > >
> > >
> > > >
> > > > Notice that localhost resolves to 127.0.0.?
> > > >
> > > > Do an ipconfig /all from the command promrt. Confirm the IP of 
> > > > your
> > > machine.
> > >
> > > This shows 192.168.1.100 as the IP for my machine.
> > >
> > > >
> > > > Are you running ANY firewall software? Disable it on a 
> temporary 
> > > > basis
> > to
> > > > test.
> > >
> > > Not sure how to cleanly disable the Linksys firewall protection.
> > >
> > > > Then configure it to allow http port 80 traffic through.
> > >
> > > Port forwarding is enabled for port 80 (http).
> > >
> >
> > There are primarily three cases that can happen with your setup:
> >
> > 1.
> > Call http://localhost-- no response
> > Call http://machineIP-- no response
> > Call http://publicIP-- no response
> >
> > Tomcat is not running.
> > Firewall on machine is blocking all IP traffic(rare but can 
> happen). 
> > TCP/IP stack is corrupt.
> >
> > Since localhost works this is not the issue with yours.
> >
> > 2.
> > Call http://localhost-- response
> > Call http://machineIP-- no response
> > Call http://publicIP-- no response
> >
> > Tomcat is misconfigured. Address setting for IP other than 
> machine IP. 
> > Firewall is enabled/running on machine(not external unit).
> >
> > 3.
> > Call http://localhost-- response
> > Call http://machineIP-- response
> > Call http://publicIP-- no response
> >
> > External firewall is misconfigured.
> > Machine firewall is misconfigured. (Some firewalls treat 
> requests to 
> > yourself as localhost and do not filter them. Try accessing
> http:/machineIP
> > from another machine on the network if available.)
> >
> > Confirm which category you fall into. Then check the items listed.
> 
> Looks like I fall into category 3.  Unfortunately, I don't 
> have another computer on the network to try your test.  Is 
> there some software that may help to test this similarly?
> 
> >
> > What version of windows are you running?
> 
> Windows XP, Service Pack 1.
> 
> >
> > If 2000 or higher go into network connection properties and 
> select the 
> > Ethernet adapter that is connected to your linksys. Click on the 
> > advanced tab and confirm that the box beside firewall is 
> NOT checked.
> 
> The box was not checked.
> 
> Also, there's an Internet Connection network connection of 
> type "Internet Gateway" that shows some services that you can 
> enable Internet users to access.  For that, http is unselected.
> 
> If I select it, and select edit, it has the following fields 
> and values:
> 
> Field: "Name or IP address of the computer hosting this 
> service on the network"
> Value: 192.168.1.0
> Field: "External port number for this service"
> Value: 80
> Field: "Internal port number for this service"
> Value: 80
> 
> I tried playing around with the settings here but I'm not 
> sure what to use. (none of them worked)
> 
> 
> 
> 
> >
> > If you are category three and the machine firewall is off then you 
> > have a problem with your Linksys.
> 
> Just to confirm the wiring, I have:
> 
> outside cable ---- cable modem --- linksys router --- computer
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to