Ads

What is port forwarding and why it is used for?

In this article we are going to talk about, what is port forwarding? Now maybe you’ve heard about it, but you weren’t exactly sure what it was or how it works. Port forwarding allows computers over the internet to connect to a specific computer or service within a private network.

What is Port Forwarding?

It’s basically making your computer accessible over the internet, even though you’re behind a router. For example, let’s say a friend of yours at their home wants to remotely control your computer at your home using a service such as a remote desktop connection. Now remote desktop connection is a service built into Microsoft Windows that enables you to connect to another computer running Microsoft Windows. And then once you’re connected to the remote computer, you can use that computer’s programs and files just as if you were sitting in front of it. Now your friend is ready to connect to your computer. As soon he starts up the remote desktop connection and sends the request to your public IP address with a specific port number. Now a port is not a physical connection, but it’s a logical connection that is used by programs and services to exchange information.

Basically, Ports uniquely identify these programs and services that are running on a computer and in this case, remote desktop connection uses port 3389. The request with the port number will make its way through the internet, to your router and once it reaches your router, your router needs to know where to forward the request for port 3389. 

Because without any port forwarding configured, your friend will not be able to connect to your computer because your router does not know what to do with this request. So, this is where port forwarding comes in. Now we’re going to tell our router to send or forward any requests that come in with port 3389 and send the request to our computer here. So, to do this we’re going to log in to our router’s configuration page by typing in the router's internal IP address using a web browser.

So, if you’re not sure what your router is internal private IP address is, you just open a command prompt on a Windows computer type in ipconfig and press enter. The default gateway is the internal IP address of your router. And it’s also important to know what your computer’s IP address is, which is right here because we’re going to be entering that IP address in the port forwarding configuration page.  

Now in a web browser, we enter the IP address of the router and now we are in the router’s configuration page.

Now depending upon what router you’re using; the configuration page will be different depending on which brand of router you are using. I’m using an ADSL Router router in this example. So, don’t be confused about whatever type of router you’re using, the layout is going to be a little different. Basically, you need to go to the port forwarding section to configure port forwarding. So here on a port forwarding configuration page, we can just enter a name for our application, and we can just call it remote desktop and then we must forward the remote desktop connection port to the computer.


So, you type in the remote desktop port number which happens to be 3389 and then you have to point it to the IP address of the computer that you want your friend to access, which is 192.168.20.6 and then we can just save our settings and now we’re done.

Now when your friend sends a request with a public IP address + port 3389, the router knows where to forward that request to and now the connection is complete.

Anyone can use port forwarding according to their needs, nowadays port forwarding is mostly used for Closed-circuit television (CCTV), Network Video Recorder (NVR) and any server configured behind the ADSL or Cable Router.

You can get your public IP Address from your router's Basic Info page or WAN information page depending up your router brand. Its better to have a static IP address from your internet service provider, as on every reboot of the router your public IP will change. Static IP address is paid service.


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!