Press "Enter" to skip to content

Basic questions about Public IP addresses and used ports

Last updated on December 23, 2018

        I realized that all of my devices have the same public IP address (I had knowledge about the concept of public and private IP addresses, but I thought this was unique in both cases), so what I do not understand very well is how the router will know which device corresponds a response entering my LAN?
Here's an example, but it doesn't tell me how the router handle this: enter image description here I think I read somewhere that it was using ports, but what if, for example, my brother and I are doing SSH, from what I understand, the router would receive answers to the same IP address (because the public IP address is shared), and to the same port (22 for SSH), then how does the router know to which device to give the corresponding answers?

Be First to Comment

Leave a Reply

%d bloggers like this: