How it works · 6 of 36 Foundation

What is the difference between a public and a private IP address?

One address faces the internet

Public vs private IP address: Devices at home or in an office get private addresses (like 192.168.1.5) that work only inside that network. The router has one public address that the internet sees for all of them.

Loading the animation…

Say it like this Private addresses like 192.168.1.5 work only inside your home or office; the router's one public address is what the internet sees for all of them.

Under the hood — for builders
Real case: two numbers for one laptop
Ask your laptop for its address and it says 192.168.1.6. Ask a "what is my IP" website and it shows the router's public number. Both are right:
The three private ranges
Anyone may use these inside their own network without asking a registry; the internet never routes them:
NAT: how the router keeps track
NAT (network address translation): the router rewrites the address on everything that leaves and keeps a note so replies go back to the right device:
Why it was invented
Private ranges plus NAT let one public IPv4 address serve a whole home or office, saving scarce public addresses.
Measure it
Windows: ipconfig shows your private "IPv4 Address". Then open any "what is my IP" page: that number is your public one.
Watch out
Mobile data may show 100.64.x.x: shared address space for carrier NAT (RFC 6598). That isn't public either.
Sources
RFC 1918, private address space. RFC 3022, Traditional NAT. RFC 6598, shared address space. RFC 5737. Read 28 Nov 2026.

What happens in the public vs private IP addresses animation, step by step?

  1. Inside your home, every device has a private address, like 192.168.1.5. The router hands them out.
  2. Your turn: look at your home from inside, then from the internet.
  3. Your neighbour's phone has the same private address. That's allowed: private addresses never leave the home they belong to.
  4. On the way out, the router swaps the private address for its one public address, and notes who asked.
  5. The reply comes back to the public address. The router checks its note and passes the reply to your phone.
  6. Private addresses work inside your home; the public one faces the internet. Next: if the IP address changes, what stays the same?

What everyday example explains public vs private IP addresses?

Flat numbers inside a building; the street only knows the building's number, and the front desk sorts the post.

Why should a team care about public vs private IP addresses?

Why "what is my IP" shows a different number from your laptop's settings, and why a home device can't be reached from outside without extra setup.