Module 20 · Two Computers, One Wire

How does a web page find its way back to the right laptop?

Lesson 20.3 · Every Device Gets a Number

Sarah · Mark · Rob

192.168.1.23, 192.168.1.17, and a third number.

Sarah opens the network settings on the laptop.

It says its address is 192.168.1.23. She checks her phone at Grandma Ruth’s: 192.168.1.17.

Then she looks up “what is my IP” on a website, and it shows the house’s IPv4 address: a completely different number, the same for both devices.

Mark asks which one is the real address. Rob says both.

The short answer

It comes back to the house’s public address, then the router passes it to the laptop at its private address, 192.168.1.23. Both numbers are real. One is the building, the other is the apartment.

Try it yourself

Work out how addresses work at Grandma Ruth’s house.

Why does every device need an IP address?

What you just did has a name

An IP address

An IP address is a number that identifies a device on a network, so data can be delivered to it, like a mailing address.

Your router gives each device in your home a private address, often starting with 192.168.

The whole home shares one public address, assigned by your internet provider.

The router remembers which device asked for what and passes replies to the right one.

A few more things

IPv4 and IPv6

Addresses like 192.168.1.23 are IPv4: about 4 billion possible addresses, which the world ran short of. IPv6 addresses are much longer, with enough for every device to have its own public one, so a “what is my IP” site may show a long address that’s different on each device.

Why sharing helps

Running out of IPv4 addresses is a big reason homes share one public address. The router’s trick of translating between public and private is called NAT.

Addresses can change

Your router may give a device a different private address tomorrow, and your provider may change your public one. Names like websites stay stable; Module 21 explains how.

Go deeper

The longer version, if you want it.

What an IP address does and doesn’t reveal

Your public IP address shows websites roughly which provider and area you’re connecting from, usually a city, not your house. That’s why a site might guess your town but not your street.

It’s also why VPNs exist: they route your traffic through another computer, so websites see its address instead of yours. Module 23 touches on privacy and security online.

Quick check

Two phones in the same house visit a website over IPv4. What public address does the site see?

Let’s take it slower

Think of an apartment building. The building has one street address that the mail carrier uses. Inside, each apartment has its own number. Mail arrives at the building, and the front desk sorts it to apartment 23 or 17. The router is the front desk. The public IP is the street address. The private IPs are the apartment numbers.

More examples

1

The IP in a game lobby

An online game shows your IP address in the lobby. That’s the public address your whole house shares, not your console’s private one, which is why two siblings playing at home can show up with the same IP.

2

Printing over Wi-Fi

Your laptop finds the printer using its private address on the home network, without going out to the internet at all.

Back to the question

So how does a web page find the right laptop?

Show the answer

It comes back to the house’s public address, then the router passes it to the laptop at its private address, 192.168.1.23. Both numbers are real. One is the building, the other is the apartment.

More on this: Router vs. modem: what’s the difference?

One last question

Build how a reply reaches Grandma Ruth’s laptop.

Tap the pieces in order. Tap one again to take it back.

…
Talk Card

Talk Card · 20.3

Every device in your house has its own private address, but to the rest of the internet the whole house is one address.

How Computers Work · pettigrewlab.com/learn

Next lesson