my dog learned polymorphism*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not opening without internet connection" Watch "Tomcat not opening without internet connection" New topic

Tomcat not opening without internet connection

Souvvik Basu
Ranch Hand

Joined: Apr 05, 2010
Posts: 95
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?

Krishna Kumar L

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 (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: 95
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:
subject: Tomcat not opening without internet connection
Similar Threads
Help needed on SSL configuration for Apache HTTP server 2.2.10 and Tomcat 5.5.9
Problem running tomcat - HTTP Status 404
Error accessing application in Tomcat 5
tomcat eclipse start issue