Sharing Apache Server with the Internet

Warning: Abandoned
This page/script has been classified as abandoned and will no longer be updated. I will keep this page here indefinitely as a reference, but it will no longer be updated and I no longer offer support of any kind regarding content found on this page.


There are several steps you need to complete if you want to allow friends, family, clients, or anyone else access to your server. If they are outside your router, you need manually set your router to forward ports to your computer.
  1. Getting your Server Location

    Unfortunately unless you have a static IP with your internet connection, your IP address (and server URL) will change every time you connect to the internet, or your modem gets reset etc. To get your current IP (Internet Protocol) number do one of the following:
    Windows 95, 98:
    Start -> Run -> type in WINIPCFG when the window pops up use the top pull down menu to select the adapter you use to connect to the internet. I had an Ethernet [network] and PPP [dial-up] adapter listed, and by default everytime it's sitting on the network adapter.
    Windows XP, Win7:
    Start -> Run -> type in cmd (this starts DOS/Command prompt). Type in ipconfig and you should get a short list of settings with your IP address displayed. (if you want to see a complete list: ipconfig /all but you don't usually need that much info)
    Now open the browser and type in http://your.number (like Now anybody can access your site by that number till your IP number changes (usually when you get disconnected from the internet it will change).

    Now open the browser and type in http://your.number (like Now anybody can access your site by that number till your IP number changes.
    Well, unless you are using a proxy, your IP and server is
  2. Getting a Dynamic DNS Provider

    If your IP changes each time you log onto the internet, you might consider getting a free Dynamic DNS provider. They work by giving you a static name like Then each time you connect to the internet, the provider will update so your URL will point to your ever changing IP number. This is a great service, and check out the Dynamic DNS primer for a better explanation of dynamic DNS, what it is, and how it works.
  3. LAN IP

    If "winipcfg" or "ipconfig" from above returned a number that was in the 192.168.x.x range, that IP is your LAN (Local Area Network) IP. Only computers that are sharing your internet connection can access your server using that number. In which case you'll need to setup your router/modem to forward your "outside" IP like to your 192.168.x.x LAN ip.
  4. Router Issues

    If you have a router or share your high-speed connection with multiple computers, you will likely need to log into your router and configure it to forward Port 80 to your computer. How you do that depends on your router. The basic info to get you started:
    ManufacturerLogin IPDefault usernameDefault Password

    Look for something under "Virtual Servers" or "Forwarding." Type of info it typically askes:
    Private IP: (enter your LAN ip. should be something like 192.168.x.x)
    Protocol Type: TCP
    Private Port: 80
    Public Port: 80
    If you still need help, check google or your router manual as I usually do not answer questions relating to this.