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

Using ip address in place of localhost

 
Orton K Randy
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The title says it all, I tried to access my webapp through ip, something like :

It says:

'course
works just fine.
Obviously, it has something to configure in tomcat conf files, unfortunately I'm not that good at them. Just so you know, I could ping to the IP(without port no. perhaps) in question successfully, firewall has been disabled. Any help would be appreciated in this regard.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17626
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ping" isn't a tcp/ip request, it's ICMP. Same transport, different protocol. So the ability to PING an IP address simply means that the PING ICMP packet isn't firewalled, and tells nothing about tcp/ip port blocking.

The first place to look when you have connectivity problems, is to use a "netstat" command. Use "netstat -ln" for Unix/Linux and "netstat -an" for Windows. If the port is being listened to on 0.0.0.0, it's available at other addresses that just localhost and that's your cue to look at the firewall.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic