Configure Port Forwarding

How to configure Port Forwarding on a router

There are many ways to configure port forwarding in a router, but the concept is the same from brand-to-brand, knowing how to set up port forwarding in one router will teach you to configure in almost all routers.

The most common need of port forwarding is for online gaming, but there also other circumstance where you’ll want to forward ports, for example, when you need to be able to connect from the internet to your FTP server or just to connect to your VPN server to remote access your desktop computer at your house.

Often times if you try to connect, for instance, your FTP server at home, the router will block the transfer of information. The solution is to open the corresponding door, or port, in the router for the information to pass through. Depending on the application you will need to open, or forward, specific port(s) in order for them to work.

Here is step-by-step how you can configure port forwarding on a router:

1  Connect your router web page interface, normally you can get there by typing in the address bar http://192.168.1.1 or http://192.168.0.1, and use your username and password — on Linksys routers the default username and password is “admin” (no quotes), on Netgear routers is “admin” for the username and “password” for the password (no quotes), and on a DD-WRT router the default username is “root” and the password is “admin” (no quotes).

Quick Tip: If neither of the default IP addresses worked to access your router’s web interface. Check in your computer for the Default Gateway, which is going to be the IP address of your router. To do this go Start, type cmd and in the Command Prompt type: ipconfig/all 

3  For the next step you are going to need the port number for the application you want to allow external access. But this will depend if the application requires a specific port to be forwarded or if you can just choose one a random one.2.  Once logged in look for a tab named something similar to: Port Forwarding, Applications and Gaming, or NAT/QOS on a DD-WRT router.

4  Under the Application name type a descriptive name. Then if you are only forwarding one port in the External Port (or Port from) and Internal Port (or Port to) field type the same port number. In the Protocol field choose between Both, TCP or UDP — if you don’t know leave the setting on the Both option.

Quick Tip: Avoid using the Well-Known ports, they range from 0-1023, if you are choosing a random port number to forward. Check the list of TCP and UDP port numbers entry in Wikipedia to learn more.

Cisco Linksys - Port Forwarding

Enter the IP address of the computer with the application that needs the external access. An easy way to find your computer IP address is by launching the Command Prompt and type: ipconfig and under the Wireless LAN adapter Wireless Network Connection or Ethernet adapter Local Area Connection look for the IPv4 Address, which will be the IP address of your machine.

Windows - Command Prompt (CMD) ipconfig

Check the Enable box and click Save Settings to finish.

5  Try the configuration to make sure that the new settings works. 

As I mentioned before knowing how to configure Port Forwarding in one router will help you to configure almost every home router you can encounter. The user interface and section names may be slightly different but the configuration is the same.

Tips: 

  • Double check when you type the IP address.
  • Every time your router is turned off or on, the computer may get assigned a new IP address, in which case you need to go to the router’s Port Forwarding page again and change the IP address to the new one.
  • One way to avoid the router from assigning a new IP address by setting a static IP address to your computer.
  • Always have the router’s manual nearby, you could need it for more details on how to access your router and other settings.
  • Make sure that the application with the port forwarded is not being blocked by your computer’s Firewall. Check How to allow programs to communicate through Windows Firewall.