It looks like I was unable to port forward correctly because of 2 main reasons:
- I did not have a static IP
- Windows Firewall was blocking the port
How to set a static IP:
http://192.168.0.1/ (by default) and log in. If you have not changed it (which you should, by the way) the username and password are both
admin. On the Home page (Status) look for your DNS server IPs. For example:
IP Address: 220.127.116.11 (Dynamic IP)
Subnet Mask: 255.255.255.0
Default Gateway: 18.104.22.168`
DNS Server: 22.214.171.124 , 126.96.36.199
Protip/suggestion: These DNS servers are likely provided by your ISP. Sometimes, these can go down or malfunction, thus making you unable to use your browser normally. This causes the famous "Nothing works except Skype" effect, when you can't access websites using their domain name, like
stackoverflow.com. For this very reason, I (and many others) suggest that you use Google's public DNS servers, which are more reliable and also make browsing a tiny little bit faster. To do this, in the following steps, use
188.8.131.52 as the primary and secondary DNS server, respectively, instead of the ones listed on your router's status page. You can also override the default DNS server IPs in the router itself under
Network > WAN, so it hands out Google's DNS servers to the computers connected to it if the machines are set to obtain the addresses automatically.
In windows go to Control Panel \ Network Connections and find the network you're connected to. Right click it ,and select Properties
- Scroll down the list until you find TCP/IP protocol. Highlight it and click Properties...
- If you already have a static IP, all of the fields will be filled. If this is the case, note the number after
Skip forward to How to port-forward
- If you don't have a static IP, then you should see all of the fields grayed out, and from the 2-2 radio buttons, the top ones are selected.
- Select the bottom radio buttons, and in the IP address field, type an address you want to be your Internal IP. I would suggest using this form:
192.168.0.### - replace #'s with a number from 2 - 254. You should note that the DHCP server hands out IPs starting from 100 if its configuration has not been modified, so there's a chance that the 100-110 range might be used by other computers/TVs/smatphones in the network. Try something above/below that, just to be sure.
- The Subnet Mask should fill in automatically. If not, type
- Set the default gateway to the IP you used to access the web interface. In this case,
- In the next field group, type the 2 DNS server addresses you noted down before.
- Hit OK twice. If it worked, you should be able to connect to the internet, but test it, just in case.
- If it doesn't work, reset the settings above back to the top radio buttons. Look around, see if you didn't mistype an address or if there is already a computer using the same IP you're trying to use, and try again.
- If it does work, then you have successfully set a Static IP
How to port-forward
- Port forwarding is pretty straight-forward. You have to, again, navigate to the router's web configuration, where you got the DNS server IPs from.
- In the sidebar, look for a menu called Forwarding. Click it!
- A list of already set virtual servers should open. By default, this is most likely to be empty. Click the Add New... button.
Choose HTTP from the list next to Common Service Port. All the fields get filled, except for the IP Address. Fill that with the Internal IP that you've entered in the Windows configuration.
- If (for some odd reason) you don't have that drop-down menu, the settings for the HTTP server are as follows:
Service port: 80
Internal port: 80
- If you're curious to see if your server is working, try navigating to the Internal IP you set while Apache is running (of course).
Adding an exception in Windows Firewall
Skip this step if you're not using the default Windows XP Firewall. If you're using a different firewall, you have to look for the proper tutorial, sorry.
- Go to Control Panel \ Windows Firewall
- Click the Exceptions tab, and then click the Add port... button.
- Name it something descriptive, like
Apache Server or
- The name does not matter, but for your own ease of use, you should not name it something like
asdasdasdasd, but this is just a suggestion.
- In the port field, type
80. If not already selected, select TCP, and click OK.
- Click OK to save the changes you made.
- Now your Firewall should not block the connections coming in on port 80.
If you've done everything right, you should be able to access the Web Server using your External IP Address.