Apache Web-Serving with Mac OS X: Part 1
Subject:   IP address using ADSL Router/Modem
Date:   2002-07-10 22:52:46
From:   mrs
I have seen several posts regarding ADSL connections but no really helpful answers on how to serve up pages to the internet through one. The tutorial says to locate your system IP address in the sharing panel. However, this is only the machine's local IP address (starting with 192..) I found the router's (fixed?) IP address using which enables me to reach my router through a browser - but how do I get past this to see pages hosted on my Apache server?
Thanks for any help.
Main Topics Newest First

Showing messages 1 through 2 of 2.

  • re: IP address using ADSL Router/Modem
    2002-07-20 10:28:43  bjarnedm [View]

    My personal experiences is with Cisco 677 ADSL routere. Now, some ISPs make an open door to routing !everything! to the computer on the LAN having that address. Others block everything not requested. Even others assign different services (ports) to different loca computers on the LAN so that ftp is eg. *.*.*.3 while http is eg. *.*.*.8. Now, in case of the Cisco 677 you need to get into it's routing table!!! You do this by getting hold of a TCP program. Start it and go to the IP-address the Cisco router has on your LAN (usually *.*.*.1). You'll the be asked to log in. Do this, and the type : "show nat". This will give you the routing table of the router. You now need to connect the external IP that you have on the internet to the LAN IP-address. You do this by typing the following : "set nat entry add <local-ip> 80 <router-ip> 80 tcp". Then "write" and "exit". Now, the smart thing to do is to assing your computer a !permanent! IP-address on the LAN and !not! use DHCP. the 'D' in DHCP is for dynamic, and it's not a good idea to have a webserver that might get a new IP-address :-)
  • IP address using ADSL Router/Modem
    2003-04-01 16:14:46  douglasgb [View]

    You've got your internet connection (cable or DSL) letting info into and out of your house. First stop is the router, which in most cases also acts as a firewall separating the inside house network from the outside rest of the world. But this barrier must be semi-permiable in order to let your internet traffic in and out of the house (so you can get your email and buy Futurama from The router can do this because it has a public side (the IP you get from your ISP - maybe fixed or maybe dynamic depending on your service) as well as a private side (your machines) and it routes traffic between these two sides. When you request a site the router knows your machine's local IP and takes your request and sends it out to the world at large, but after substituting its public IP address. When the answer comes back the router forwards the reply on to your machine.

    If you want to host a website you need to configure your router to route requests coming from outside to go to one of your inside machines, which (when running as a web server) will reply and send the info back out; the reverse of the process above. You need to do two things first: set up the web serving machine with a static IP address and configure the router to forward packets to that machine. Go to the IP forwarding section of your router's configuration setup and set it to allow traffic on port 80 (that's the number for http traffic) to pass through and go to your machine's local IP address. And set the local machine to have a static address so it doesn't change and have the router routing http traffic to a vacant IP address.