Jump to content

What is port-forwarding?

Carlos1010

Hi all,

When I was looking at VPN's, I saw that there was an option with port-forwarding when buying it. Then I thought, what is port forwarding? Searching this term on google just gives really short explanations that I don't really understand. Can someone give me an example where you would have to use port forwarding as an option when doing something? I am very confused about this topic.

Thank you so much (In advanced)

 

I'm part of the "Help a noob foundation" 

Link to comment
Share on other sites

Link to post
Share on other sites

In computer networks, port numbers are used to talk to a specific service that may be running on a computer. For example, 80 is a common port for computers to talk in HTTP which delivers web pages. 22 is a common port for remote shell logins.

 

In a LAN, despite every computer having a different IP address, they all share the same external IP address. So if your external IP is 123.123.123.123, every computer in your LAN will be seen as the rest of the world as 123.123.123.123, even if one computer in the LAN claims it's 192.168.1.3 and another 192.168.1.42.

 

The problem is when the internet wants to initiate communication to one of your computers in the LAN. Since every computer in the LAN is seen to the rest of the world as 123.123.123.123, your router doesn't know who to forward the data to. However, since the other computer is usually trying a specific service, it will use a port. So if you have a web server set up, it'll listen for communication requests on port 80. The other computer will connect to 123.123.123.123 port 80. The router is then set up so that any requests on port 80 will forward traffic to the web server you set up. Let's say the web server on the LAN is 192.168.1.42. So all traffic from the internet to 123.123.123.123 port 80 will be forwarded to 192.168.1.42.

 

I suppose a real world quasi analogy is think of your LAN as an apartment building. Every apartment in it though shares the same street address. So in order for mail addressed to you to get to you, you have to tell the postal service which apartment number you're in so that all mail coming in to that street address and apartment number goes to your mailbox.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, M.Yurizaki said:

I suppose a real world quasi analogy is think of your LAN as an apartment building. Every apartment in it though shares the same street address. So in order for mail addressed to you to get to you, you have to tell the postal service which apartment number you're in so that all mail coming in to that street address and apartment number goes to your mailbox.

I have been trying to come up with something like this for years now, to dumb it down as far as possible for not-so-techy-people to understand. Thanks a lot!!!!

Link to comment
Share on other sites

Link to post
Share on other sites

port forwarding is basicly when you open up a port on your firewall to let traffic in and out 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×