File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080]" Watch "Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080]" New topic
Author

Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080]

Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
Dear All,

We upgraded our tomcat server to 5.5.30.
Everything works fine and we were able to access tomcat home page using the url as - http://localhost:8080 .
But the things went wrong when we tried to use the system ipaddress or loop back ip (http://<server-ipaddress>:8080 or http://127.0.0.1:8080) .
At that time we were getting Server not found error.


Another interesting fact is that it is working fine using both local and loopback ipaddress
in our older version of tomcat(5.0.2)

Due to this problem we were not able to publish the url. Could anyone suggest some possibilities for this problem.

Any help is highly appreciated.

Thanks in advance
NikhilChandran.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

Something is wrong here. "localhost" is an alias for 127.0.0.1. If one or the other should be broken, it should be "localhost".

You didn't mention which OS you're using. It makes a big difference, but no commonly-used OS should be having problems locating 127.0.0.1.


Customer surveys are for companies who didn't pay proper attention to begin with.
Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
I am using windows XP.

Thanks,
NikhilChandran.

Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
But it is working fine using both local and loopback ipaddress
in our older version of tomcat(5.0.2) . in same OS, with all environments same
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Nikhil, check firewall and anti virus software setting.
 
wood burning stoves
 
subject: Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080]