• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat not opening without internet connection

 
Ranch Hand
Posts: 96
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 96
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your suggestion. I have no idea how to check the localhost IP mapping. Can you please tell me?
reply
    Bookmark Topic Watch Topic
  • New Topic