*
The moose likes Tomcat and the fly likes Tomcat not opening without internet connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not opening without internet connection" Watch "Tomcat not opening without internet connection" New topic
Author

Tomcat not opening without internet connection

Souvvik Basu
Ranch Hand

Joined: Apr 05, 2010
Posts: 96
I have installed Tomcat 5.5 in my PC. When I connect my comp to the net and try working with tomcat, everything is fine. Unless I startup tomcat, I'm shown the error page when trying to access http://localhost:8080. Tomcat works fine and lets me run my apps.
However, when my computer is disconnected from the net, even though I can start tomcat, but I'm not able to access the http://localhost:8080 page. It neither takes me to the home page, nor does it show me an error. It just shows connecting.....and stays that way.

Can anyone please tell me where I am going wrong?

Thnx
Krishna Kumar L
Greenhorn

Joined: Feb 01, 2011
Posts: 2
I may not be able to give you a solution but I also have somewhat similar issue with Sun's Glassfish server. I had installed it while connected to my work VPN and I can not access Glassfish console with http://localhost:port when I am not connected to VPN and I have to use the http://127.0.0.1:port (or IP assigned by the router, don't remember exactly). You may have installed Tomcat while connected to Internet and while Internet connection is ON the localhost is mapped to the IP assigned by your ISP and when you disconnect from Internet localhost may be getting mapped to Class C local address. Try looking at what IP is mapped to localhost when Internet is ON and when Internet is OFF.
Souvvik Basu
Ranch Hand

Joined: Apr 05, 2010
Posts: 96
Thanks for your suggestion. I have no idea how to check the localhost IP mapping. Can you please tell me?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not opening without internet connection