Port Forwarding: A Guide

So first, here are a couple of things that you canevery computer has 65536 ports (numbered 0 to
do after you finish this section.- You can configure65535). When a computer attempts to talk to
BitTorrent to give you excellent speeds- You cananother computer, the attempt is always initiated
configure your computer to play multiplayeralong with a port number.Forwarding Ports Lets
games over the internet- You can setup yourassume that a computer on the Internet needs
computer as a terminal server (for remoteto initiate a connection to a specific software on
desktop connections)- and many many more coolyour computer. The software in discussion uses
stuff!!This tutorial consists of 2 sections1.port 12345. For simplicity, we will call the initiating
Understanding Port Forwarding2. Implementingcomputer as ClientX, and your computer as the
Port Forwarding on common routersWhat isServerX. As we discussed earlier, clientX only
portforwarding?In one sentence, portforwardingsees (and knows) the external IP address i.e. the
makes the internet see your computer as if itIP address of your router. It tries to initiate a
were directly connected rather than beingconnection to that IP address with the port
connected though a router. For the same reason,number 12345. However, your router recieves
if you dont have a router, and your computer ISthis request, and sees 4 computers in your house
directly connected to the Internet, then you wontconnected to the router. The router is not able to
need this tutorial.A little explanation: When afigure which computer the connection from
computer is connected to the internet, it isClientX was intended for! So it simply drops the
assigned a unique address called the IP address.connection.Port forwarding is a setting in the
This enables other computers on the internet torouter which you can change to prevent this
communicate with it and send packets to it andfrom happening. By doing this, you can tell the
so on... An IP address has the formatrouter that any connections for port 12345 has to
###.###.###.###. It looks like four sets ofbe forwarded to ServerX. Now when the router
numbers, separated by a dot. Each set can haverecieves a request for a connection on port
a value between 0 and 255.Usually the internet12345, it checks its table and sees your entry
service provider is the guy who assigns you an IPsaying that all connections for port12345 have to
address for your connection. However, he givesbe forwarded to serverX. Hence it routes the
you only ONE ip address and this gets assigned toconnection accordingly!Here we'll see how to do
the cable/dsl modem at your house. If youportforwarding on most routers. Scenario : Lets
directly connect your computer to the cable/dslsay you need to forward port 6889 to a
modem, you are using this IP address tocomputer whose Internal IP is 192.168.1.10.Step 1:
communicate with other computers on theFind your gateway IP address. To get this, in
internet. However, you can connect only onewindows, select Start > Run. Type in "CMD" and
computer to the cable modem at any given time.hit enter. Inside the command window, type
So you go to the nearest store and buy a"ipconfig" and hit enter. The screen will show you
router.Role of the router A router connects tothe default gateway. Note this down.Step 2: Open
the cable/dsl modem and splits the one internetInternet explorer. Enter your gateway from Step
connection into multiple connections so all the1 in the address bar, and hit enter. A popup
computers in your house can enjoy internetwindow will ask you to authenticate into your
connectivity simultaneously. Once you get therouter with a username and password. Enter the
router, you connect the router to your cable/dslusername and password. If you dont remember,
modem, and all your computers to thetry the default ones below:Linksys router : Default
router.Internal and External IP addresses Onceusername "" password "admin"
you start using a router, the IP address given byNetGear router : Default username "admin"
your internet service provider gets assigned topassword"password"
the router. This IP address is called the External IPBelkin router : Default username "" password""
address, as it is part of the external networkD-Link router : Default username "admin"
between your router and the Internet. The routerpassword""
in turn assigns new IP addresses to theGateway router : Default username "admin"
computers connected to it. These addresses arepassword"admin"
a part of your Internal Network, and are calledIf you cant remember the password, post it on
Internal IP addresses. By set laws, an Internal IPthe forum at and someone will help you!Step 3:For
address may start with the numbers 10,128, orBelkin routers, select virtual servers from the left
192. All the other combinations are used formenu. Enter something for description. Type
external addressing.For example, my external IP"6889" or the required port number in both fields
address is 68.36.145.156. This IP address isfor inbound port. Do the same for the Private
assigned to my router. I have two computersport fields too. Select the connection type from
connected to the router, and they have the IPthe drop down. If you dont know what you need,
addresses 192.168.0.10 and 192.168.0.11. These aretry UDP. If that doesnt work, come back and try
my internal addresses.The Port conceptEvenTCP. In the private IP address field, enter the
when you use a router to connect manycomputer to which you need the connection
machines to the internet, other computers on theforwarded. In our case, this is 192.168.1.10Linksys
internet see one single machine with the externalrouters, select "Application and Gaming" from the
IP address of the router. They dont know that atop menu, and the select 'portrange forwarding'
router is sitting inside your house and splitting thefrom the submenu. In another family of linksys
external address into many internal IP addresses.routers, you can find 'Forwarding' section under
They can only make a connection to your router,'advanced' tab of main setup page. Rest of the
and your router decides how to route theprocess is the same as that for Belkin routers
connection and to which internal computer toabove.Netgear routers, you'll find 'Port Forwarding'
route it to.IP addresses are further divided intounder the 'Advanced' table in the main page. The
channels called ports. This permits one IP addressrest of the steps are same as above.Step 4:Save
to be shared by multiple programs at the samethe setting and restart the router. Your port
time, each using a different port. By standardforwarding is complete.