One Address per House
- Public vs. private addresses
- NAT
Last lesson ended on a scandal: your home's addresses start with
192.168, and so do your school's, and so do a million strangers'.
Four billion scarce addresses, and everyone's handing out duplicates?
The resolution is the cleverest workaround on the internet — and it's
running in your hallway right now.
Two kinds of address
The address system has two tiers, like a big apartment building:
- A public address is world-unique and reachable from anywhere — the building's street address. Your home holds exactly one, assigned by your internet provider to your router's outward face. The entire internet knows your household as that single number.
- Private addresses are the room numbers inside. Certain ranges —
192.168.x.xis the famous one — are reserved, by worldwide agreement, to be meaningless on the public internet. The front desk (DHCP, last lesson) deals them freely inside the building, and they only need to be unique within it. Your192.168.0.23and a stranger's identical192.168.0.23never conflict for the same reason two hotels can both have a room 214: nobody mails a letter addressed only "Room 214, Earth."
That's the scandal resolved — duplicates by design, in ranges the world agreed to keep indoors. And the arithmetic relief is enormous: a household of thirty devices consumes one public address, not thirty. This two-tier scheme is the "everywhere-at-once workaround" that has kept too-small IPv4 breathing for decades.
NAT: the front desk forwards the mail
One puzzle remains, and it's sharp: your phone (room 192.168.0.23)
requests this page. The reply must come back addressed to — what? Its
private room number means nothing out there. The reply can only be
addressed to your one public address... which is shared by every
device in the house. When the parcel arrives at the building, who
gets it?
Enter NAT — Network Address Translation, the router's second full-time job. As your phone's request leaves, the router rewrites the label: sender changed from the private room number to the public street address — and it jots a line in a notebook: this conversation belongs to room 23. When the reply arrives at the building addressed to "the street address," the router checks the notebook, recognizes the conversation, rewrites the label again, and walks it in to your phone. The front desk, readdressing mail both directions, thousands of times a second, one notebook line per ongoing conversation.
Every device in the house appears to the internet as the same single address — the sites you visit see the building, never the room. It follows that the whole house shows one "location," and it follows that unsolicited strangers can't easily mail a parcel in to a private room the notebook never mentioned — a quiet side benefit Unit 3's guards lesson will pick back up.
So addresses now fully work: public ones for the world, private ones
indoors, a desk assigning them, a translator bridging. But be honest —
you did not type 203.0.113.7 to get here today. You typed a name.
The gap between the names humans use and the numbers parcels need is
bridged by the internet's phone book, consulted billions of times a
day, and it's the next lesson.