Go Back   Hardware Canucks > SOFTWARE > Networking

    
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 12, 2010, 09:57 AM
MVP
 
Join Date: Sep 2008
Location: toronto
Posts: 375
Default how does port forwarding work?

Friends asked me and they were surprised when I had no answer.
They're interested in it cause they play WC3,SC, etc.etc.
I just told them to get Garena lol
but they're still interested.
__________________
CPU:E8400 @ 3.8GHZ -->Zalman 9700NT HSF
GPU:XFX 5870 1GB
HDD:150GB Raptor,WD500GB,WD1TB BLACK
MOBO:Asus Striker 2 Formula
RAM:OCZ HPC REAPER 4GB 1066mhz pc2-8500 (5-5-5-15)@2.2v
PSU:CORSAIR 750W
CASE:Silvertstone TJ07
SOUND:Auzentech X-Fi Prelude
Keyboard:Logitech G15 V2
Mouse:Razer DeathAdder
Case Cooling:2x92mm exhaust,2x120mm exhaust, 2x120mm Ultra Kaze(3000RPM)intake.
Running:Win7 64-bit Ultimate
F@H PPD:46957

Reply With Quote
  #2 (permalink)  
Old March 12, 2010, 11:45 AM
Banned
F@H
 
Join Date: Sep 2009
Location: Montreal, QC
Posts: 5,415

My System Specs

Default

Port forwarding - Wikipedia, the free encyclopedia
Reply With Quote
  #3 (permalink)  
Old March 12, 2010, 01:52 PM
Perineum's Avatar
Hall Of Fame
F@H
 
Join Date: Mar 2009
Location: Surrey, B.C.
Posts: 4,026

My System Specs

Default

Your internet connection has over 60,000 ports.

Some ports are assigned, like email, telnet, remote assistance and web browsing. For instance, web browsing typically uses port 80.

Lets say you have 5 computers at home, all behind one router. That router has your only real IP address. Each computer has a number assigned to it by the router which is it's internal (non internet routable!) IP address. When you want to play a poorly coded game and it needs access on port 3874 (for instance) you can tell the router to forward *ALL* data coming into the router to ONE particular computer/IP address.

You cannot tell a router to port forward one particular port to more than one computer/IP address.

Software written today should all be fully tested and router compatible. People claimed that you needed to forward a handful of ports to play BFBC2 but I have 3 machines here that all play it at once. If I had port forwarded to one computer then I would have been limited to playing on one computer. Regardless, port forwarding is not needed with BFBC2

I hope my description wasn't too basic and kinda gave you the idea...
Reply With Quote
  #4 (permalink)  
Old March 12, 2010, 02:36 PM
BigDogg's Avatar
Top Prospect
 
Join Date: Jan 2010
Location: Kitchener/Waterloo
Posts: 187

My System Specs

Default

Here is how I would explain it.

You internal network is controlled by the router. This is why you get a 192.168 address as it is a special IP address used for internal networks. This allows each computer in your network to easily communicate with each other over using the router. In addition to providing some routing capabilities the router also talks to the outside world. Now when you are reciving information from the internet on a specific port the router needs to know where to send that information. Information coming from the outside source usually only knows your public IP address not the internal 192.168 address. So you tell the router that all information coming to it on Port XX should be sent to computer 192.168.x.x . It really shouldn't be needed with most modern games. It usually applies to things like hosting a web server, utorrent, and other programs where you are accepting incoming connections from multiple external IP's.
Reply With Quote
  #5 (permalink)  
Old March 12, 2010, 07:05 PM
Perineum's Avatar
Hall Of Fame
F@H
 
Join Date: Mar 2009
Location: Surrey, B.C.
Posts: 4,026

My System Specs

Default

I didn't mention the IP address range simply because I've run into routers that use the 10.x.x.x range instead. Murphy's law dictates that if I mentioned 192.168.x.x then it would be virtually guaranteed that he would have the other.
Reply With Quote
  #6 (permalink)  
Old March 12, 2010, 08:29 PM
Top Prospect
 
Join Date: Nov 2007
Location: Montreal, Qc
Posts: 111

My System Specs

Default

Whenever a program wants to "listen" for incoming connections over the internet, it needs to open a "port". The port is a 16 bits integer, so it has a range of 0-65535.

Port forwarding is a simple concept : since your home PCs are behind a router, and the router is the only device directly connected to the internet, it's the one that has to open the port for listening. So for example, if you have a web server (standard port 80) behind a router, only the local computers connected to the router will be able to access it. To enable anyone from the internet to access the server, you would create a port forwarding on your router, so that it redirects (forwards) all incoming internet connections on port 80 to your specified server.

Some games need a port open for listening to incoming connections, especially when they are the kind where you can host a game. You basically need to tell the router to open these ports for listening and forward the traffic to your local PC.

I can be a bit long-winded, but I hope that helped. :)
__________________

Reply With Quote
Reply


Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
2-port KVM w/ USB JD Peripherals 3 February 5, 2010 08:42 PM
Simple Port Forwarding? (free app) sswilson Networking 1 January 12, 2010 05:14 AM
SATA Port Dead JD Troubleshooting 1 October 9, 2009 09:18 PM
Port Scans automatic Networking 14 April 3, 2009 01:54 PM
port 22 closed? nick_black Troubleshooting 4 March 6, 2008 12:14 PM