Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Tomcat:Works fine with localhost but not with ip

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just install Apache tomcat using windows installer .It installed successfully .I am able to access it with localhost but not with ip.
Thanks
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What IP?
You haven't given us much to work with.

If Tomcat is working with localhost then it's running OK.
 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ip is static .it works when i type 127.0.0.1 .I am able to ping that static ip from my machine.
Thanks
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean exactly? Do you mean that if you type "http://<ipaddr>:8080/...", where <ipaddr> is the IP address of your machine on your network, it doesn't work? Are you trying to access it from the same machine or from a different machine?

Maybe this is because you have a firewall switched on. Are you using Windows? Try going to Start / Control Panel / Security / Windows Firewall then go to the Exceptions tabsheet and add the port that Tomcat uses as an exception, so that Windows Firewall doesn't block communication.
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're connecting with your browser with a proxy.

Check if an exception is made for localhost and 127.0.0.1

When I switched 127.0.0.1 out of the exception list I had the same problem.
 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It was my silly mistake .When i switch the port to 80 it is also accessible from other machine.
reply
    Bookmark Topic Watch Topic
  • New Topic