Lesson 2.2 Category: Module 2 · How the internet works

IP Addresses Explained Simply

An IP address is the number the internet uses to deliver data to the right place, a little like the address on a parcel.

What you’ll understand

  • What an IP address is and why the internet needs one.
  • The difference between public and private IP addresses.
  • What an IP address can and cannot reveal about you.

When you send a parcel, you write an address on it. The delivery service doesn’t care what is inside the box. It only needs to know where the box is going and where to return it if something goes wrong.

The internet works in a similar way. Every message your device sends is split into small pieces, and each piece carries a destination address and a return address. Those addresses are IP addresses.

The idea in everyday words

An IP address (Internet Protocol address) is a number that identifies where a device can be reached on a network. When your browser asks a website for a page, the request is labeled with the website server’s IP address, and with an address the reply should come back to.

There are two versions in common use:

  • IPv4 addresses look like four numbers separated by dots, for example 203.0.113.25. There are only about 4.3 billion of them, which sounded like plenty when the system was designed and turned out not to be.
  • IPv6 addresses are much longer, written with letters and numbers separated by colons, for example 2001:db8::25. There are so many that running out is not a realistic worry.

Both do the same job. You will mostly see IPv4 in examples because it is shorter to read. (The example addresses in this lesson come from ranges reserved for documentation, so they don’t belong to anyone real.)

Public and private addresses

Here is where the parcel comparison needs a small upgrade. Picture a large apartment building. The postal service delivers to the building’s street address. Inside, the reception desk knows which apartment each parcel belongs to.

Your home network works like that building.

Your devices

Each gets a private address that only makes sense inside your home network.

  • Laptop: 192.168.1.10
  • Phone: 192.168.1.11
  • TV: 192.168.1.12

Your router

Stands at the border, like a reception desk.

  • Inside: 192.168.1.1
  • Outside: 203.0.113.25 (public)
  • Remembers which device asked for what

The internet

Websites see only your router’s public address.

  • Replies go to 203.0.113.25
  • The router passes each reply to the right device
Many devices can share one public IP address. The router keeps track of which reply belongs to which device.
  • A private IP address is used inside a local network, such as your home Wi-Fi. Certain ranges are set aside for this, including addresses that start with 192.168. and 10.. Millions of homes use the very same private addresses, and that is fine, because those addresses never travel across the wider internet.
  • A public IP address is the one the rest of the internet sees. Your internet provider assigns it, usually to your router.

The router translates between the two. This translation is called network address translation (NAT). When your phone requests a web page, the router sends the request out using the public address, remembers that the phone asked, and passes the reply back to the phone.

A concrete example

Your laptop and your phone are both on home Wi-Fi. Each has its own private address. Both visit the same news website at the same moment. From the website’s point of view, two requests arrive from one public address: your router’s. The router keeps careful notes so that the laptop gets the laptop’s page and the phone gets the phone’s.

Why it matters

IP addresses are how data finds its way, so they appear everywhere in security: in logs that record who connected, in firewall rules that allow or block connections, and in investigations after something goes wrong.

They can also reveal a little about you. A public IP address often shows roughly which region you are in and which internet provider you use. That is one reason some people use a VPN (virtual private network), which makes websites see the VPN provider’s address instead. A VPN changes who can see that address, but it doesn’t make you anonymous or protect you from scams. (There is a planned lesson about VPNs and their limits.)

A common mix-up

An IP address does not reliably identify one person or one device. A whole household, an office, or a café can share a single public address. Mobile networks often share one address among many customers, and addresses can change over time. So “this IP address did it” usually narrows things down to a network at a moment in time, not to a particular person.

Try it safely

On your own device, open the Wi-Fi or network settings and look for an “IP address” entry under the network you are connected to. It will very likely be a private address, such as one starting with 192.168. or 10.. Now you know your device’s address inside your home network. There is no need to share it or change it.

Check your understanding

What is an IP address for?

Answer: It identifies where a device can be reached on a network, so data can be delivered to it and replies can come back.

Your phone shows the address 192.168.1.11. Is that a public or a private address?

Answer: Private. Addresses starting with 192.168. are reserved for local networks. Websites see your router’s public address instead.

Does an IP address prove exactly which person visited a website?

Answer: No. Many people and devices can share one public address, and addresses can change. It points to a network at a certain time, not to a specific person.

The key idea

An IP address is a delivery address for data. Devices at home use private addresses, the router uses a public one for the outside world, and that public address points to a network, not to one particular person.

Further reading