• 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
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Using ip address in place of localhost

 
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28654
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic