Public vs Private IP Address: Key Differences, Ranges and Examples

Every internet connection uses two kinds of address at once: a public IP address, assigned by your internet provider and visible to the whole internet, and private IP addresses, assigned by your router and valid only inside your own network. That one distinction explains most of the confusion around public vs private IP address setups, from why your laptop and your neighbor's laptop can both be 192.168.1.5 to why a website never sees that number.
This guide covers the differences in full: who assigns each type, the exact private ranges, how NAT connects the two worlds, a reliable test for telling them apart, and step by step instructions for finding both of your addresses on Windows, Mac, Android, iPhone and in your router settings.
What is a public IP address?
A public IP address is the globally unique address your internet provider assigns to your connection. It is allocated to the provider out of the worldwide address pool, through the regional registries that divide up IP space, and it is routable, which means any computer on the internet can send traffic to it and the traffic will find its way to your router.
Websites, game servers and email systems see this address whenever you connect. It identifies your connection, not a single device: every phone, laptop and smart TV in your home shares the same public address when they go online through your router. For most home users the address is dynamic, so the provider can change it from time to time, although it often stays the same for weeks or months. Businesses that host servers can pay for a static public address that never changes.
What is a private IP address?
A private IP address is an address used only inside a local network. Your router assigns one to every connected device using DHCP, and the same address can be reused in millions of separate networks at the same time, because traffic with a private address is never routed across the public internet.
Private addresses exist because the world does not have enough public IPv4 addresses for every device. They are formally reserved in RFC 1918, the IETF document titled Address Allocation for Private Internets. Your router itself has a private address too, commonly 192.168.1.1 or 192.168.0.1, and it acts as the gateway between the private side and the public side of your connection.
Public vs private IP address: the key differences
| Feature | Public IP address | Private IP address |
|---|---|---|
| Scope | The whole internet | One local network |
| Assigned by | Your internet provider | Your router (DHCP) or set manually |
| Unique worldwide | Yes, only your connection uses it | No, reused in countless networks |
| Routable on the internet | Yes | No, blocked at the network edge |
| Who can see it | Every site and service you connect to | Only devices on your local network |
| Typical example | 203.0.113.25 (documentation example) | 192.168.1.5 |
| Changes | Can change when the provider reassigns it | Can change when the device reconnects |
The shortest way to remember the table: your public address is your connection's identity to the outside world, and your private addresses are room numbers inside the building. Both are needed, and neither can do the other's job.
The private IP address ranges
RFC 1918 reserves exactly three blocks for private use. Any address inside these blocks is private, on every network, everywhere:
| Range | CIDR notation | Number of addresses | Where you usually see it |
|---|---|---|---|
| 10.0.0.0 to 10.255.255.255 | 10.0.0.0/8 | 16,777,216 | Large company networks, some provider routers |
| 172.16.0.0 to 172.31.255.255 | 172.16.0.0/12 | 1,048,576 | Office networks, virtual machines, VPNs |
| 192.168.0.0 to 192.168.255.255 | 192.168.0.0/16 | 65,536 | Home routers and small offices |
A few other special ranges are worth knowing so you do not mix them up with private addresses. The IANA IPv4 Special-Purpose Address Registry lists them all. The loopback range 127.0.0.0/8 points a device back at itself. The link local range 169.254.0.0/16 is a fallback a device gives itself when it cannot reach a DHCP server, and it is a sign of a connection problem. The shared address space 100.64.0.0/10 is used by providers for carrier grade NAT; it behaves like private space but is not part of RFC 1918, which is why you sometimes see it as the router's upstream address on mobile and budget broadband connections.

How NAT connects private addresses to the internet
If private addresses cannot travel on the internet, how does your laptop at 192.168.1.5 load a website? The answer is NAT, or network address translation, running on your router.
When your laptop sends a request out, the router rewrites the source address from the private address to its own public address, notes the swap in a translation table along with the port number, and forwards the request. When the reply comes back addressed to the public IP and that port, the router looks the entry up and delivers the data to the right private address. To the website, the whole household looks like one device with one address.
NAT is also why address blocks are written the way they are. Ranges like 192.168.0.0/16 are prefixes, a shorthand for a whole block of addresses. If you want the deeper mechanics of splitting networks into blocks, Cloudflare's Learning Center has a clear explainer on what a subnet is and how subnetting works.
NAT was adopted as a workaround for IPv4 scarcity, but it has a side effect people rely on: devices behind NAT cannot be contacted directly from the internet unless the router is told to forward traffic to them. That shapes the security picture covered below.
How to tell if an IP address is public or private
Use this test, in order:
- Check the address against the three RFC 1918 ranges above. If it falls inside any of them, it is private. No exceptions.
- If it starts with 127, it is loopback. If it starts with 169.254, it is link local. If it falls in 100.64.0.0 to 100.127.255.255, it is carrier grade NAT space. None of these are ordinary public addresses.
- Anything else in normal use is a public address.
That answers one of the most searched versions of this question directly: is 192.168.1.1 a public or private IP address? It is private, because it sits inside 192.168.0.0/16. On most home networks it is not even a computer's address, it is the router's own address on the private side.
How to find your public and private IP addresses
Your public address takes one step to find. Open the What Is My IP tool and it shows the public address your connection presents to the internet, together with its location and provider. No settings menus needed.
Your private address lives in your device settings:
- Windows 11: Open Settings, then Network and internet, then your Wi-Fi or Ethernet connection. Your address appears as the IPv4 address in the connection properties.
- Mac: Open System Settings, then Network, then select your Wi-Fi or Ethernet service. The address is shown under the connection status, or in Details on newer versions.
- Android: Open Settings, then About phone, then Status, and look for IP address. On many phones you can also tap the connected Wi-Fi network name to see it.
- iPhone: Open Settings, tap Wi-Fi, tap the information icon next to your connected network, and read the IP Address field.
- In your router settings: Log in to the router's admin page and open the connected devices or DHCP client list. This is the only view that shows the private address of every device at once, and it is the right place to check when two devices seem to be fighting over one address.
Notice the practical difference: the public address is the same from every device in the house, because they share it, while each device has a different private address. If an address changes when a device reconnects, that is normal DHCP behavior, and the distinction between addresses that change and addresses that stay fixed is covered in our guide to static vs dynamic IP addresses.
Security differences between public and private addresses
A private address cannot be reached from the internet at all, because internet routers refuse to forward traffic to RFC 1918 space. That makes NAT a useful first barrier: an outside attacker cannot open a connection to your laptop's private address directly, and unsolicited inbound traffic dies at your router.
A public address, by contrast, is visible to every service you use and is constantly probed by automated scanners looking for open ports and outdated services. The exposure sits with whatever answers on that address, which for a home user is the router itself. Three habits cover most of the risk: keep router firmware updated, change the router's default admin password, and only enable port forwarding or remote management when you genuinely need them, since those features deliberately punch a path through NAT to a private address.
Neither type of address hides you by itself. Your public address still reveals your provider and approximate city to every site you visit, which is a property of how routing works, not a flaw in your setup. And a private address gives no protection against threats that start inside the network, such as a compromised smart device, which is why router updates matter more than address trivia. Students who want the full addressing picture, including how these ranges sit inside the older class system, can continue with IP address classes explained.
Frequently asked questions
Is 192.168.1.1 a public or private IP address?
It is a private IP address. It falls in the 192.168.0.0/16 block that RFC 1918 reserves for private networks, so it is never routed on the public internet. On most home networks it is the router's own address on the local side.
What is a public IP address used for?
It is the address the internet uses to reach your connection. Websites send their responses to it, game and video call traffic is addressed to it, and it is the address you would publish if you hosted a server at home or needed remote access to your network.
Can two devices share the same private IP address?
On the same network, no. Two devices with one address cause an IP conflict and one or both lose connectivity. On different networks, yes, and it happens constantly, because private ranges are reused independently in every home and office.
Does every device in my home have its own public IP address?
No. All of them share the single public address assigned to your router, and NAT keeps track of which private device each connection belongs to. Your phone only gets a different public address when it leaves Wi-Fi and uses mobile data.
How can I tell which type an address is?
Compare it with the three RFC 1918 ranges. If it is inside 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16, it is private. Loopback (127), link local (169.254) and carrier grade NAT space (100.64.0.0/10) are special cases, and everything else you meet in normal use is public.
Can someone reach my computer through my private IP address?
Not from the internet. Private addresses are not routable outside your network, so an outsider cannot address traffic to them. They can only reach services you deliberately expose through your router, for example with port forwarding.
Conclusion
The public vs private IP address split is simple once you see the jobs they do. Your provider gives your connection one public address that the whole internet can reach, and your router gives every device a private address that works only at home, with NAT translating between the two. Check your own pair of addresses now with the What Is My IP tool: the address it shows is your public one, and you can match it against the private address in your device settings.