File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat:Works fine with localhost but not with ip

 
amit sharma
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Remko Strating
Ranch Hand
Posts: 893
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was my silly mistake .When i switch the port to 80 it is also accessible from other machine.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic