Saturday, July 12, 2014

How to do port forwarding.

If you are connecting to the internet through WiFi or LAN, for some applications to connect to the internet properly you will have to open/forward some 'ports' inside your router. This is because the application you are using communicates to the internet through a port that isn't used commonly. Most routers do not allow communication through uncommon ports for security reasons. When you forward/open a port, this tells the router not to discard data-packets arriving at this port.

To perform port forwarding, first you will have to collect the following easy to get information

1.The ip address of your router's settings page and the local address of your PC

To find this ,open up control panel and at the right top of the page select small icons in the view by drop down menu.

Now click on Network and sharing center in that page.

In the window that appears, underneath the View your active networks section, click on the entry against Connections

This will open open up a new window and in that click on the Details button.

In the windows that opens up note down the values against. IPv4 address and IPv4 gateway

The IPv4 address here is the internal IP address of your PC and the IPv4 gateway is the address of your router.

NOTE:  If the application you want to port forward is in some other device, note down the IPv4 address of that device. If the device is a smartphone, search on the internet to find out how to find the internal IP address of that device. There are usually apps available for finding out such information.

2. The port your application uses
Applications that need to be port forwarded will have their on unique port number. You'll have to do a google search to find this out.

After having found out all that info., open up your web browser and enter the IPv4 gateway address you noted down earlier. This will open up the settings page of your router. 

It will be asking you for username and password now. Every router has a default username and password. Mostly it is admin for both username and password.

If those aren't the default ones, time for another google search. Search for 'default username and password' along with the manufacturer name of your router.

Once you find the username and password enter it in the password dialogue box and get rid of it.

Now the trick is to find out the 'port forwarding' page of your router. Since router settings pages differ from one model to the other, I can't tell you where exactly it is located.

Look for a page that says port forwarding. Or a page where you can enter the details like 'protocol name', 'internal port', 'internal IP','external port' and such.

NOTE: The IP-filter page will also contain fields like those. Make sure that it is not that one.

The port forwarding page in my router

The port forwarding page will have a ready made list of port forwarding rules for some applications. But chances are that your application is not in there and you will have to do it manually. In that case you will have to enter the following details.

1. Port forwarding rule name: Enter the name of the application for which you are port forwarding here.

2. Protocol/Type: Depends on the application. But most applications use TCP and UDP protocols.
If you can select only one protocol at a time, you will have to do the steps from 3 to 5 for all of the protocols. In this case, for TCP and UDP.

3. Internal IP address: This is the internal address you found out in step 1.

4. Internal Port Range: This is the port number mentioned in step 2. For both start and end of the range enter the same port number.

5. External Port Range: Depending on the type of application this can be the same as what you entered in    internal port range or 1 to 65535. If you are in doubt enter 1 as start and 65535 as end of the range.

Once you have entered those details click apply. You might have to restart the router for the settings to take effect.

No comments:

Post a Comment