Public vs private IP addresses explained
192.168., 10. or 172.16–31.. Our home page shows
your public address; your device's settings show its private one.
Ask what someone's IP address is and you can get two different answers, both correct. That's because most devices have two: one for talking to the rest of the internet, and one for talking to other devices nearby. Knowing which is which saves a lot of confusion when setting up printers, remote access or allow-lists, or when someone in IT support asks you for "your IP".
Think of a block of flats
A block of flats has one street address. Post from outside arrives at that address, and inside, each flat has its own number. Your network works the same way:
- The public IP address is the street address: one for the whole building, visible to everyone.
- The private IP addresses are the flat numbers: they only mean something inside the building, and every other building can use the same numbers without any confusion.
- Your router is the concierge, passing everything that arrives at the street address to the right flat. This is called NAT (network address translation).
That's why your laptop at home can be 192.168.1.20 and so can millions of other laptops at the same
time: private addresses never leave your network.
The private address ranges
Three blocks of IPv4 addresses are reserved for private networks and never used on the public internet:
192.168.0.0–192.168.255.255: used by most home routers.10.0.0.0–10.255.255.255: common in businesses and some home routers.172.16.0.0–172.31.255.255: also used by businesses, and by tools like Docker.
A few other special ranges are worth recognising:
127.0.0.1: "this computer" (localhost). Every device has it, and it only ever talks to itself.169.254.x.x: a device gives itself one of these when it couldn't get an address from the router. If you see it, the device isn't really connected: check the cable or Wi-Fi, or restart the router.100.64.x.x–100.127.x.x: used by internet providers for CGNAT, where many customers share one public address. If your router's internet address is in this range, you don't have a public address of your own, which stops port forwarding working (see our port forwarding guide).
Anything outside these ranges is a public address. Our Subnet Calculator tells you whether any address is private or public, and which range it belongs to.
How to find each one
Your public IP address
Visit our home page: the big address at the top is your public IP, the one every website sees. You can also find it on your router's status page, where it's often labelled WAN or internet IP.
Your private IP address
- Windows: open Command Prompt and type
ipconfig. Look for "IPv4 Address" under your Wi-Fi or Ethernet adapter. - Mac: System Settings → Network → choose your connection → Details.
- Linux: type
ip addrin a terminal. - iPhone: Settings → Wi-Fi → tap the (i) next to your network.
- Android: Settings → Wi-Fi → tap your network (the exact menu varies by phone).
Your router's admin page also lists every device on the network with its private address, which is handy for finding a printer or camera.
Which one do people mean?
- A supplier or IT team asks for your IP to "allow" or "whitelist" you: they want your public address, because that's what their systems see.
- Setting up a printer, NAS or camera on your network: you need its private address.
- Setting up a port forward: both. The outside world connects to your public address, and the router forwards to the device's private address.
- "Can websites see my IP?": they see your public address only. Your private address stays inside your network.
Why does my public IP change?
Most home broadband has a dynamic public address: your provider can give you a new one when the router restarts, or every so often. For browsing it makes no difference. If you need a fixed one (for remote access, or for a supplier's allow-list), many providers offer a static IP, sometimes free and sometimes for a small monthly charge. Business broadband usually includes one. Alternatively, a dynamic DNS service gives you a name that follows your address when it changes.
Private addresses can change too, when a device reconnects. For anything you need to reach reliably, like a printer or a server, set a DHCP reservation on the router so it always gets the same one.
And with IPv6?
With IPv6, the picture is simpler: there are so many addresses that every device usually gets its own public one, and
NAT isn't needed. Devices also have an address starting fe80: that only works on the local network, a bit
like a private address. Our guide to IPv4 vs IPv6 explains the differences.