Why your laptop's address isn't the one websites see
NAT (network address translation) lets every device in your home share your router's one public IP address. Inside, devices get private addresses like 192.168.1.23, which are never routed on the open internet.
It exists because IPv4 addresses are 32 bits, so there are only about 4.3 billion, fewer than the devices online. The router rewrites each outgoing packet to look like it came from itself, and rewrites replies on the way in.
How the internet works · 8 of 102 / 3
NAT
Real-life use case
Your phone and laptop show the same 'What is my IP' answer
Connect a phone and a laptop to the same home Wi‑Fi and open a 'What is my IP' site on both: they show the same public address. Yet the laptop's own settings list something like 192.168.1.23 and the phone 192.168.1.40.
Mobile carriers go further with carrier-grade NAT: many customers share one public address, and phones get addresses from a shared range (100.64.0.0/10) that only the carrier's network uses.
How the internet works · 8 of 103 / 3
NAT
How it helps
The router swaps in its own address and remembers who asked
When your laptop connects from port 51000, the router swaps in its public address and a free port, say 40001, and fixes the checksums. It records the pair in a translation table: which public port belongs to which device.
The server replies to port 40001. The router looks that port up and rewrites the destination back to 192.168.1.23:51000. Ports are 16-bit numbers, so one public address can carry tens of thousands of connections.
A packet arriving on a port with no table entry has nobody to go to, so the router drops it. That is why hosting a game server at home needs 'port forwarding'. Entries also expire after a period of idleness.
What it’s forThe translation rule a home router applies to every connection that leaves and returns.
out: (h, p) → (R, q) in: (R, q) → (h, p)
h
the device's private address, e.g. 192.168.1.23
p
the port the device chose, e.g. 51000
R
the router's single public address, e.g. 203.0.113.7
q
a free public port the router picks; ports run 0 to 65,535 (2¹⁶ values)
What it givesOne table entry per connection, so replies to the shared address find the right device.
Laptop 192.168.1.23:51000 goes out as 203.0.113.7:40001
Phone 192.168.1.40:51000 goes out as 203.0.113.7:40002