If you want to know What exactly is Port Forwarding and when to use it, please go to the link below:
Before Configuring Your Router
There are a few things you need to be aware of when you decide on setting up port forwarding.
- If you’re using DHCP, then each device’s IP has the potential to change in the future, and when it does you’ll need to reconfigure your port forwarding settings. For this reason, it’s best to configure your “server” computers with a static IP. Some routers have the ability to “reserve” or “assign” IPs via DHCP that will NOT change in the future, allowing you the best of both worlds, but not all do.
- When you access your network externally, you will need to know your router’s external IP address. This can be easily found from someone inside the network by visiting whatismyip.com. This address can also change.
- Using custom ports may trigger your antivirus or firewall, so you may have to add exceptions on your home computers to allow outside access on whatever ports you specify. This is a security risk to some extent, so be careful and take proper precautions!
How to Set Up Port Forwarding to a Router?
Enter your router’s IP address in the address bar of a web browser. This will open your router’s configuration page. For most routers, this will be 192.168.0.1, 192.168.1.1, or 192.168.2.1. However, if you want to figure out the IP, here’s how to do it:
- For Windows: Open the command prompt and enter ipconfig /all. The router’s IP address is usually the same as the Default Gateway.
- For Mac: Open the terminal and enter netstat -nr.
- For Linux: Open the terminal and enter route.
Enter your username and password. If you’ve already configured the security settings for your router, enter the username and password you chose then. If not, here are some of the most common default logins:
- On Linksys routers, type “admin” for both the username and the password.
- On Netgear routers, type “admin” for the username and “password” for the password.
- On other routers, try leaving the username empty and entering “admin” for the password.
- You can visit sites such as RouterPasswords.com and enter in your router’s model to find the default password.
- If you’ve forgotten your login information, you can press the reset button on your router to reset it to factory defaults. You can then look up the factory default settings online.
Find the Port Forwarding section. Each router will be slightly different. Common labels are Port Forwarding, Applications, Gaming, Virtual Servers. If you don’t see one of these or something similar, try Advanced Settings and look for a Port Forwarding subsection.
Create a custom entry. If the program you want to add is not listed, you will need to create a custom port forwarding entry. Each router will have a slightly different way of doing this, although the required information is the same for any router:
- Enter a name for the service. Name it something related to the program so that you know what the entry is for.
- Choose the service type. This can be TCP, UDP, or both. The service type depends on what program you are unblocking. If you are unsure, select the TCP/UPD option.
- Select the ports you wish to use. If you only want one port open, enter the same number in Start and End. If you wish to open a range of ports (say 5), you might type 3784 in Start and 3788 in End.
- Select the internal IP address to assign the port forwarding to. This is the IP address of the computer running the application that you are unblocking. Check out the guides for PC or Mac to find your internal IP.
Save your settings. You may have an Apply button instead of Save. You might need to restart your router for them to take effect.