• 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

Which IP address is to be given in Listen directive

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to host website from my machine. I am connected to router and I have configured it to forward the port to my machine.

I can see my web page in my local network.
The problem is my page is not getting displayed to others over internet.

Which IP address should I give in the Listen directive ?

The local IP address or the WAN ip address ?

Thanks in advance,
Prasad.
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, kind of both

Your internal network is probably something like 192.168.x.y. This is a non-routable IP address which means that it will not be available from the internet. So in your internal network you'll want to access the server by it's local IP - again, likely to be something like 192.168.something.something. Your router will provide NAT - network address translation from the outside address to the inside address. From your office or outside of your home you'll access the server via the external IP you've been given. But the Listen address will be your local IP.
[ April 12, 2006: Message edited by: Scott Dunbar ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic