what is port forwarding?

the port forwarding is a way to send and receive data packets from a public source. it is a complicated topic. you might never understand it if you won’t perform it on your own system.

By port forwarding, we can redirect traffic to a specific destination.

example:

  1. you play Minecraft. it requires to forward a port to play it with your friends on LAN.

2. if you use Ngrok, it uses port forwarding to connect your local IP to its cloud server IP.

how to forward a port?

we are using a router. it has an inbuilt option to forward ports. I don’t have one that’s why I can’t show you images(sorry).

step1.>

you must know the gateway IP which is an address to your routers web application.

to know your gateway address type this in your terminal or CMD:

for windows: ipconfig /all

for Linux: route

these commands will give you the gateway address.

step.2>

type the default gateway address in your browser. you will see the web application interface. now search for port forwarding option. some routes have the port forwarding option in Applactions&Gaming. now go to the option that you have found.

step.3>

you can see some index or table there.

first two indexes are to represent the range of port. you can type 123 to 124(for an example). and then router asks for a protocol. it can be TCP or UDP or both.

step.4>

now input the local address on which the port is running. it will forward the port and allow it to interact with the public network.

note- the Router always assigns various IPs at various times. if you forward a port on an IP that was assigned by the router, can be changed by the router automatically. you will need to specify a particular IP to a particular device.

LEAVE A REPLY

Please enter your comment!
Please enter your name here