Wednesday, January 20, 2010

Enable Port forwarding in Router

Port forwarding or port mapping is the practice of forwarding a TCP/IP packet in a network address translator gateway to a predetermined network port on a host within a masqueraded, typically private network based on the port number on which it was received from the originating host. The technique is used to permit communications by external hosts with services provided within a private local area network.

Port forwarding allows remote computers (e.g., public machines on the Internet) to connect to a specific computer within a private LAN.[3]
For example:
1. Running a public HTTP server within a private LAN (port 80)
2. Permitting Secure Shell access on the private LAN from the Internet (port 22)
3. Permitting FTP access to hosts on a private LAN from the Internet (port 21)
4. Downloading torrents. (P2P)

Here are the common procedures to forward a port in Windows.

1. Get HyperTerminal (or telnet), you can find it from Start>Accessories>Communication (for Windows users).

2. A \"New Connection\" window will open up asking you to enter a name and choose an icon for the connection. You can give any name here and choose any icon. If the window doesn't pop up, then click on File>New Conncetion.

3. In the next window choose the \"Connect Using\" option as \"TCP/IP(Winsock)\" [Very Important] and then choose the Host address as 192.168.1.1(the router IP address) and the Port as 23.

4.It will take you to the Login menu, enter the login and password as \"admin\"(when you type the password, it won't show any asterisk or any other character, keep on typing).

5.Thats it, we are now in the Advanced Options of the Router setup.

6. Enter the menu option 6 that corresponds to NAT to enter the NAT configuration.

7.It gives you 3 options and from that choose Virtual Server(ie, 1) and then choose Add.

8. You can give any service name here, i gave the name as uTorrent and for Protocol choose the option 0(Zero - for tcp and udp)

9. The External Start port, end port, Internal Start port, end port > Enter it exactly same as the port given in uTorrent.(yes, all four) [I am not very sure about the exact value to give, but it worked for me when i entered the same port in uTorrent for all four port settings].

10. Give the internal IP address as your computer's IP address [I set my computer's IP address as 192.168.1.2]

11. Now, the router will save the information and you can exit (by hitting 4 and then 3) and then reboot the router by pressing 13. It will show some process kills and then after 30secs-1min, it will reboot. Wait for 1 minute and then login to the router again(By using HyperTerminal, follow steps 1, 2,3,4)

12. Now, check in the uTorrent, if its accepting the connections and is forwarding the Port. It should work for most of you out there.

And if this don't work then go for this ultimate method. It forwards all the ports at the scarifies of security. So go ahead only if the above mentioned method don't work.

Go to NAT setup through the HyperTerminal again, and go to DMZ and choose Configure and give you computer's IP address. The network traffic will be open. Make sure that you have a good antivirus and a firewall installed in your computer. You can give the Firewall exception for uTorrent though.


This should open the port that you want.