Network

Port Forwarding explained. How to forward Ports?

Port Forwarding explained. How to forward Ports?

The IP address alone is not is sufficient to deliver any information to a computer. How does the computer network know what is to be done with the information? This is determined by the port number to which the information packet is sent. This post tells you what's Port forwarding; and how do you forward Ports.

What is Port Forwarding?

In normal language, a port is where ships anchor/dock and planes land. They then proceed with their journey as per schedule.  In Information Technology lingo, ports are hardware and software (called logical ports) and they help with everything the computer does. The different points you see on your computer for attaching peripherals are called hardware ports. Their work is to send the information received to the correct process(es).

Logical ports are not hardware built. You can't see them, but they are there - more than 6000 ports in any working computer. Though all of them are not used, some are common (for example port 80 is reserved for interacting with HTTP). Another example: Port 25 is used to send an email (SMTP).

Once a data packet reaches any IP Address (i.e. computers and IoT devices), the port forwards the data packet to the respective part of the device so that it can be processed properly. So how does the computer know where exactly to forward the data? This is made possible by ports. The computer, which is receiving data, relays it to the indicated ports that serve different purposes.

You know that everything on the Internet has an IP (Internet Protocol) address. Along with the IP address, the sender network also sends a port address. For example, if you are accessing something on the web through any Internet browser, the port address would be like 192.168.1.13:80 where 80 is the port number on the computer or any IoT device having IP address 192.168.1.13. A similar style of port addresses is used to print and scan things, upload and download stuff to/from the Internet, and many other things that a computer does.

If you wish to know what all ports are open on your PC, type the following command in an CMD and press Enter key.

netstat -a

Third-party port scanner apps are also available to give you details of the ports on your computer.

Port forwarding is also known as Port mapping. It is required when trying to access a computer network from the outside of the network firewall or router. Online gamers often need to do port forwarding.

How to forward Ports?

Though you can forward ports using the PowerShell through the netsh command, it is hard to find out the values of parameters that come with the command.

There are some free third-party software like FwdPortForwardingApp (Link) that help you in port forwarding so that you do not have to experiment with different values of command-line parameters (values to be provided to the command).

You can configure port forwarding from your router or firewall. The router method is easier, so we'll talk about it.

  1. Fire up your browser
  2. Enter 192.168.1.1 in the browser address bar
  3. Your router's welcome page appears
  4. Fill in your ID and password for the router you are trying to connect to
  5. ID in most cases is admin and password is password; some routers have admin as both ID and password; if you can't find it, call your router manufacturer's service center to know the ID and password
  6. In the router page, look for port forwarding under Advanced Settings
  7. Fill in the port number to which you want items forwarded
  8. Save and exit the router; restart router for changes to be applied

Note that using this method would require you to have a static IP address on the port receiving the forward. You can set up your static IP address using IPv4 or IPv6 option in your computer's network troubleshooting option in Control Panel.

You can also Configure Router Firewall using third-party tools like Simple Port Forwarding app. You can download the Simple Port Forwarding app from here.

Open Source Ports of Commercial Game Engines
Free, open source and cross-platform game engine recreations can be used to play old as well as some of the fairly recent game titles. This article wi...
Cele mai bune jocuri de linie de comandă pentru Linux
Linia de comandă nu este doar cel mai mare aliat al tău când folosești Linux - poate fi și sursa de divertisment, deoarece poți să o folosești pentru ...
Best Gamepad Mapping Apps for Linux
If you like to play games on Linux with a gamepad instead of a typical keyboard and mouse input system, there are some useful apps for you. Many PC ga...