How do services and applications differentiate between two PCs in the same network if they have the same public IP?

383 viewsOtherTechnology

How do services and applications differentiate between two PCs in the same network if they have the same public IP?

In: Technology

4 Answers

Anonymous 0 Comments

If two PCs share a public IP, then there is a router between them and the Internet, and that router implements Network Address Translation (NAT).

Within the local network, controlled by the router, the two PCs have different IPs (like 192.168.0.something). The NAT translator in the router sends the messages from each LAN IP address with a different port so that when the data comes back it can figure our which LAN IP to sent the packets to.

There are many more details of NAT, and it’s a rather complex topic, and this is only the ELI5 simplification of the facts.

You are viewing 1 out of 4 answers, click here to view all answers.