IP
whatismyip.ai

Public vs Private IP Address: What's the Difference?

Your public IP is the address the internet sees. Your provider assigns it, it's unique worldwide, and every website you visit can read it. Your private IP lives only inside your own network: your router hands it out from reserved ranges (192.168.x.x and friends) that never appear on the public internet.

That's the whole distinction in two sentences. It does raise some fair questions, though: how does a laptop with only a private address reach websites at all? Why can millions of homes use the exact same 192.168.1.x numbers without conflict? And which one does a setup guide want when it asks for "your IP"? All three get answered below, starting with a side-by-side comparison.

Public IPPrivate IP
Who assigns itYour internet provider (ISP)Your router, via DHCP
Who can see itEvery website and server you connect toOnly devices on the same network
Address rangesEverything not reserved for other uses192.168.x.x, 10.x.x.x, 172.16.x.x to 172.31.x.x
UniquenessUnique across the entire internetUnique only inside one network, reused everywhere else
Example203.0.113.42192.168.1.23

That "uniqueness" row matters more than it looks. A public IP can be looked up: it maps to an internet provider and an approximate location. A private IP maps to nothing outside your own walls. Right now, 192.168.1.23 belongs to your laptop, to your neighbor's smart TV, and to a million other devices at once. They never collide, because those addresses never leave their home networks.

How NAT Bridges the Two

If your devices only carry private addresses the internet can't route, something has to translate between the two worlds. That something is your router, running NAT (Network Address Translation).

Picture an office building with one phone number and a receptionist. From outside, every call hits the same number, the building's public identity. The receptionist picks up, knows the invoice question goes to extension 23 and the delivery query to extension 31, and connects each caller to the right desk. The extensions mean nothing outside the building. The public number tells you nothing about which desk is which inside it.

Your router is that receptionist. When your laptop (192.168.1.23) asks for a web page, the router rewrites the request so it appears to come from your single public IP, and notes in a translation table that this particular conversation belongs to the laptop. When the reply arrives, it forwards the data to 192.168.1.23. Not to your phone, not to your TV. Every device in your home shares one public address this way, and websites only ever see that shared address. They can log it, geolocate it roughly, and identify your provider, but they can't tell which device behind it made the request. (And "roughly" is doing real work in that sentence. If a website places you in the wrong city, see why your IP location can be wrong.)

This translation is so universal that most people have never used a device holding its own public IP. Many providers even add a second layer of the same trick (called carrier-grade NAT), putting your entire neighborhood behind one address. A receptionist for the receptionists.

The receptionist also explains port forwarding, which you'll meet the day you host a game server or set up a security camera. Normally she only connects calls that an extension asked for. A port forwarding rule is a standing instruction: "any call about deliveries goes to extension 23, even if nobody is expecting it." That's how an outside connection can reach a specific private device on purpose. It's also, as the security section will show, why each of those rules deserves a moment of thought.

The RFC 1918 Ranges, Exactly

Private addresses aren't picked at random. A 1996 standard, RFC 1918, carves out three blocks of IPv4 space that no internet router will ever forward:

  • 192.168.0.0 to 192.168.255.255 (192.168.0.0/16): about 65,000 addresses. The default for nearly every home router, which is why your devices almost certainly sit at 192.168.0.x or 192.168.1.x.
  • 10.0.0.0 to 10.255.255.255 (10.0.0.0/8): nearly 17 million addresses. The pick of corporate networks, universities, and cloud platforms, which need room for far more than a household.
  • 172.16.0.0 to 172.31.255.255 (172.16.0.0/12): about a million addresses. The least famous of the three; you'll run into it in Docker containers, guest networks, and some ISP-supplied routers. Watch the boundaries here: 172.16 through 172.31 is private, but 172.32.x.x is a perfectly ordinary public address.

One lookalike worth knowing: 169.254.x.x. It's non-routable too, but it isn't an RFC 1918 range and your router never assigns it. It's link-local, the address a device gives itself when it asks for a private IP and nobody answers. So 169.254 in your network settings isn't a normal private address. It's a symptom: DHCP failed, and your device is effectively offline.

That gives you a thirty-second classification skill. Starts with 192.168? Private. Starts with 10? Private. Starts with 172 and a second number between 16 and 31? Private. Starts with 169.254? Broken. Anything else (8.8.8.8, 203.0.113.42, your router's WAN address) is public space. That one check clears up most "which IP is this?" confusion before it starts.

How to See Each One

The two addresses live in different places, which is itself a neat illustration of the difference.

Your public IP isn't in any settings menu, because your device usually doesn't know it. Only your router (or your ISP's equipment) does. The reliable way to learn it is to ask a server on the internet what address your request arrived from: check your public IP here, along with the location and provider details that anyone else can derive from it.

Your private IP is the mirror image: no website can tell you what it is, because it never leaves your network. You read it off the device itself, under Settings → Network on most systems, or with a one-line terminal command. The exact steps for Windows, Mac, iPhone, and Android are in how to find your local IP address.

Here's a practical rule for which one a setup guide wants. If the instructions involve another device in your home (a printer, a NAS, port forwarding on your router), they want the private IP. If they involve a service out on the internet, like whitelisting your address or setting up remote access, they want the public one.

Comparing the two views also tells you something about your connection. Your router's admin panel shows the address your ISP gave it, usually labeled WAN IP. If that matches the public IP a website reports, you have a direct connection. If it doesn't (say the WAN IP sits in a private range itself, or in the 100.64.x.x block carriers use), your ISP has put you behind carrier-grade NAT. That's why port forwarding sometimes fails no matter how carefully you configure it: the hole you open in your router leads to another locked door you don't control.

Why This Split Exists

The public/private divide wasn't part of the internet's original design. It's a patch, and a remarkably durable one. IPv4 addresses are 32 bits, which allows roughly 4.3 billion of them. In the 1980s that seemed inexhaustible. By the early 1990s it clearly wasn't: giving a unique public address to every computer, then every phone, then every lightbulb was arithmetically impossible.

RFC 1918 and NAT were the workaround: let networks reuse the same private ranges internally and spend public addresses only at the border, one per household instead of one per device. A home with thirty connected gadgets burns a single public IPv4 address. That trick is the main reason the IPv4 internet still works years after the address pool officially ran dry.

IPv6 changes the picture entirely. With 128-bit addresses (340 undecillion of them), scarcity disappears, and with it the original need for translation. On an IPv6 network, your devices typically get globally unique addresses of their own, so the public/private distinction, in the IPv4 sense, largely dissolves. Privacy is handled differently there: devices rotate randomized addresses instead of hiding behind a shared one, and isolation comes from firewalls rather than unroutable address ranges. For the full story of the two protocols and the transition between them, see IPv4 vs IPv6.

Security Implications

The private side of the split has a real security benefit: an attacker on the internet can't send traffic straight to 192.168.1.23, because no internet router will carry packets to that destination. Your devices aren't reachable by default. Connections from outside only get through if your router's translation table expects them, which normally means your device started the conversation.

But be precise about what that does and doesn't protect. NAT is not a firewall. It drops unsolicited inbound traffic as a side effect of not knowing where to send it, not as a security policy. The protection evaporates in a few everyday situations:

  • Anything you invite in. A malicious link, attachment, or app runs inside your network. From there, the private address space is wide open: your NAS, your cameras, your router's admin panel.
  • Port forwarding and UPnP. Every forwarded port is a deliberate hole in the NAT boundary. UPnP lets applications punch those holes automatically, sometimes without you ever finding out.
  • Other devices on your network. On shared Wi-Fi (hotels, cafés, offices), every other client is already behind the same NAT as you. Private addressing offers zero protection from your neighbors on the network.

The public side carries the opposite trade-off. Your public IP is exposed by design (every site you visit logs it), but by itself it reveals only your provider and an approximate location, not your identity or your device. The router's actual firewall, kept on and updated, is what does the real defensive work on both sides.

Key Takeaways

  • Public IP: assigned by your ISP, unique on the internet, visible to every site you visit (see yours here). Private IP: assigned by your router, meaningful only inside your network.
  • Private addresses come from three reserved ranges (192.168.0.0/16, 10.0.0.0/8, and 172.16.0.0/12) that internet routers never forward.
  • NAT bridges the two: your router presents one public address for the whole household and keeps a translation table to route replies to the right device.
  • The split exists because IPv4 ran out of addresses; IPv6 has so many that devices get globally unique addresses and the distinction largely disappears.
  • Non-routable doesn't mean secure: NAT drops unsolicited traffic, but it isn't a firewall. Forwarded ports, malware you invite in, and other users on shared networks all walk right past it.

Common Questions

Can a private IP address be traced?

Not from the internet. A private address like 192.168.1.23 is reused in millions of networks at once and gets stripped out by NAT before your traffic leaves home, so no website ever sees it and no outside party can trace it back to you. What can be traced, to your internet provider and an approximate area, is your public IP. And inside your own network, the administrator can absolutely see which private address did what. Private means "invisible to the internet," not "anonymous to your own router."

Is 192.168.1.1 public or private?

Private: it sits inside the 192.168.0.0/16 range reserved by RFC 1918. It's also the single most common address for a home router's admin panel, because routers conventionally take the first address in their range for themselves and hand out the rest to your devices. Type 192.168.1.1 (or 192.168.0.1, the other usual default) into a browser on your own network and you'll usually land on your router's settings page. From anywhere else in the world, the same address reaches that network's router, or nothing at all.

Do I have a public and a private IP at the same time?

Yes, almost certainly both, right now. Your device holds a private address on your local network (192.168.1.x or similar), and your router holds the public address that represents you on the internet. They run at the same time and do different jobs: the private one lets your devices find each other, the public one lets the internet find your network. On mobile data the private side may come from your carrier's internal network rather than a home router, and on IPv6 your device may also carry a globally routable address of its own. The everyday answer is still yes, you always have both. For the bigger picture of how addresses identify devices at every level, start with what an IP address is.