Check your IP address in your computer's settings and then on a website, and you will see two different numbers. Both are correct. One is your private IP address, used inside your network. The other is your public IP address, used on the internet.
The simple explanation
Think of an office building. The building has one street address that the outside world uses, and each desk has an internal extension number. Mail arrives at the street address, and reception passes it to the right desk.
Your public IP address is the street address. Your private IP address is the extension. Your router is the reception desk.
Public IP addresses
A public IP address is reachable on the internet and is unique there at any moment. Your internet provider assigns it to your connection, not to one device, and everything on your network shares it. It is the address sites see when you visit them, and you can check yours on the WhatsMyIP.net homepage.
Private IP addresses
A private IP address only works inside a local network. Your router assigns one to each device. Internet routers do not carry traffic for these addresses, so millions of homes can use exactly the same ones without any conflict.
The private IPv4 ranges are set in RFC 1918:
| Range | Typically used by |
|---|---|
| 10.0.0.0 to 10.255.255.255 | Companies, and some home routers |
| 172.16.0.0 to 172.31.255.255 | Companies and virtual networks |
| 192.168.0.0 to 192.168.255.255 | Most home routers |
How the two work together
Network Address Translation, or NAT, connects both worlds. When your laptop requests a web page:
- The laptop sends the request to the router from its private address.
- The router replaces that address with your public IP address, and remembers which device asked.
- The website replies to your public IP address.
- The router looks up which device asked, and passes the reply to it.
This is why one connection can serve all your devices. It is also why devices outside your network cannot start a connection to your laptop, unless you set up port forwarding. Some providers add a second layer of translation, which we cover in what is CGNAT.
Other addresses you may see
| Address | What it means |
|---|---|
| 127.0.0.1 | Loopback: the device talking to itself |
| 169.254.x.x | The device could not get an address from the router |
| 100.64.x.x to 100.127.x.x | Shared provider address space used for CGNAT |
What about IPv6?
IPv6 has so many addresses that devices can each have a public one, so home networks usually do not need NAT. Devices still have local addresses as well, which start with fe80, and they rely on the firewall in your router to block unwanted incoming traffic.
When does each one matter?
- Use the public address to allow access through a firewall, set up remote access, or check what sites see.
- Use the private address to connect to printers and network storage, set up port forwarding, or troubleshoot a device at home.
Need to look up either number? Follow our guide on how to find your IP address.