[Ilugc] Apache Web Server Doubt..

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Thu Sep 13 08:38:54 2007

Sivabalan Thirunavukkarasu wrote:

if it is PPPoE, you can check what ip your webserver is running on by
using ifconfig, and your friend can access your page on that ip -
this will change everytime you reconnect to the internet.

My web server is running on my local ip.. 127.0.0.1 loopback.. and
192.168.1.33.. and also my system is in lan with the router having
private ip 192.168.1.1 (the gateway) and only its external ip changes
every time..

1. Install a dynamic DNS client like ezclient/ddclient on the web server 
and register a host in the free dynamic DNS service e.g DynDNS. Setup 
the client to update the DNS server every 5 minutes. Do not make it 
smaller as you might end up getting blacklisted for excessive traffic.
2. On the router, set up port forwarding on port 80 to 192.168.1.33.

Once this is done, your webserver can be accessed by the registered host 
name.

Mohan

Other related posts: