Private IP Address Ranges (RFC 1918) and Public vs Private IP
The private IPv4 ranges are 10.0.0.0 – 10.255.255.255 (10.0.0.0/8), 172.16.0.0 – 172.31.255.255 (172.16.0.0/12) and 192.168.0.0 – 192.168.255.255 (192.168.0.0/16), defined in RFC 1918. They work only inside a network; the internet sees your public IP instead.
Try:
Checked in your browser. Many addresses at once: public or private IP checker.
The Three Private IP Ranges (RFC 1918)
There are three private IPv4 blocks of very different sizes: 10.0.0.0/8 (16.7 million addresses), 172.16.0.0/12 (1 million) and 192.168.0.0/16 (65,536).
| Range | CIDR | Addresses | Where you'll see it |
|---|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16,777,216 | Companies, clouds (Azure and Google Cloud default networks), some routers (10.0.0.1) |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1,048,576 | Offices, Docker (172.17.0.0/16 by default), the AWS default VPC (172.31.0.0/16) |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 | Home routers (192.168.0.1, 192.168.1.1) |
Common mistake: only 172.16 to 172.31 is private. 172.15.x.x and 172.32.x.x are ordinary public addresses. Anyone can use the private ranges without asking a registry, which is why millions of networks reuse them. Plan subnets inside them with the subnet calculator.
What Is a Public IP Address?
A public IP is the address the whole internet sees for your connection; your provider assigns it and no other network uses it at the same time.
Public addresses come from the regional internet registries (ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC), which give blocks to providers, which give one to your router. Every website you visit sees it: that's the address on our homepage. Home connections usually get a dynamic one that can change; businesses can ask for a fixed one (static vs dynamic IP). Your phones and laptops don't have public IPv4 addresses of their own: they share the router's.
Public vs Private IP: The Differences
A public IP is unique on the internet and reachable from outside; a private IP is reused in millions of homes and works only inside its network.
| Public IP | Private IP | |
|---|---|---|
| Who assigns it | Your internet provider | Your router (DHCP) or you |
| Reachable from the internet | Yes (unless a firewall blocks it) | No, only inside the network |
| Unique | Yes, worldwide | Only inside its network |
| Cost | Included; a static one can cost extra | Free |
| Example | 8.8.8.8, 2606:4700::1111 | 192.168.1.20, 10.0.0.5, fd12:3456::1 |
| How to find yours | Shown on our homepage | Network settings or ipconfig |
How Private Devices Reach the Internet: NAT (Network Address Translation)
Your router swaps each device's private IP for your one public IP on the way out, and back on the way in.
The router keeps a table of who asked for what (private address and port ↔ public port), so replies go back to the right device. Because nothing outside can start a connection to a private address, NAT also hides your devices. When you need the opposite, a game server or a camera reachable from outside, you add a port forward in the router and check the port is open.
What Is CGNAT (100.64.0.0/10)?
CGNAT is when your provider puts your router behind another layer of NAT, so many customers share one public IP.
- How to know: open your router's status page and compare its WAN (internet) address with your public IP on our homepage. If the WAN address is 100.64.x.x–100.127.x.x, you're behind CGNAT; another private address usually means a second router in front of yours (double NAT), though some providers run CGNAT on private addresses too. Any WAN address that differs from your public IP means NAT upstream.
- What it breaks: port forwarding, hosting a server or a game at home, some remote-access cameras; you may also see more captchas, since you share an IP.
- What to do: ask your provider for a public IPv4 (often free or a small fee), use IPv6 if you have it, or a VPN or tunnel service that offers port forwarding.
Mobile networks usually use CGNAT for IPv4. The 100.64.0.0/10 range (RFC 6598) exists so providers don't collide with the private ranges their customers use at home. Check whether you're behind it, and every way around it: What Is CGNAT?
Loopback (127.0.0.1) and APIPA (169.254.x.x) Addresses
127.0.0.1 always means "this computer"; a 169.254.x.x address means your device didn't get an address from the router.
What is 127.0.0.1 / localhost?
The loopback address: traffic sent to it never leaves the device. Developers use it to test servers (http://localhost:8080). The whole 127.0.0.0/8 block is loopback, and IPv6 uses ::1. "There's no place like 127.0.0.1" is the old joke. Ports, "localhost refused to connect" and opening it from a phone: 127.0.0.1 and localhost.
What is a 169.254 (APIPA) address, and how to fix it?
When a device asks for an address (DHCP) and nobody answers, it gives itself one in 169.254.0.0/16, called link-local or APIPA. It can only talk to other devices on the same cable or Wi-Fi, not the internet. Fixes: restart the router, check the cable or Wi-Fi password, then renew the address (ipconfig /release and ipconfig /renew on Windows; toggle Wi-Fi on a phone). Every cause and fix, per system, and 169.254.169.254 in the cloud: 169.254 IP address (APIPA).
All Special IPv4 and IPv6 Ranges at a Glance
Besides the private ranges, a few more blocks are reserved for special uses and never appear as normal public addresses.
| Range | Name | Where you'll see it |
|---|---|---|
| 0.0.0.0/8 | "This network" | 0.0.0.0 in configs means "any address" |
| 10.0.0.0/8 | Private (RFC 1918) | Companies, clouds, some routers |
| 100.64.0.0/10 | Shared address space (CGNAT, RFC 6598) | Inside provider networks |
| 127.0.0.0/8 | Loopback | 127.0.0.1 = this computer |
| 169.254.0.0/16 | Link-local (APIPA) | Device got no address from the router |
| 172.16.0.0/12 | Private (RFC 1918) | Offices, Docker |
| 192.0.0.0/24 | IETF protocol assignments | Rare, special protocols |
| 192.0.2.0/24 · 198.51.100.0/24 · 203.0.113.0/24 | Documentation (TEST-NET-1/2/3) | Examples in documentation, like the ones on this site |
| 192.168.0.0/16 | Private (RFC 1918) | Home routers |
| 198.18.0.0/15 | Benchmarking | Network test labs |
| 224.0.0.0/4 | Multicast | IPTV, discovery protocols (mDNS uses 224.0.0.251) |
| 240.0.0.0/4 | Reserved | Unused; 255.255.255.255 is the limited broadcast address |
IPv6:
| Range | Name | Equivalent / use |
|---|---|---|
| ::1 | Loopback | Like 127.0.0.1 |
| fe80::/10 | Link-local | Every IPv6 interface has one; like 169.254.x.x but always present |
| fc00::/7 (fd00::/8 in practice) | Unique local addresses | The IPv6 equivalent of private ranges |
| 2000::/3 | Global unicast | Public IPv6 addresses |
| 2001:db8::/32 · 3fff::/20 | Documentation | Examples in documentation |
| ff00::/8 | Multicast | Like 224.0.0.0/4 |
Source: the IANA IPv4 and IPv6 Special-Purpose Address Registries (RFC 6890 and updates) and the IANA multicast registry.
Which Private Range Should You Use?
Use 192.168.x.x at home, and an unusual 10.x.x.x subnet for offices and VPNs to avoid clashes with home networks.
- Home: keep your router's default (192.168.0.x or 192.168.1.x). It's fine for up to 254 devices.
- Office reached by VPN: avoid 192.168.0.x and 192.168.1.x. If an employee's home uses the same subnet, the VPN can't tell the two apart. Pick something like 10.42.0.0/16.
- Containers and clouds: Docker uses 172.17.0.0/16 by default, and clouds often suggest 10.0.0.0/16; plan so networks you'll connect later don't overlap.
- Never use public addresses you don't own (like 1.1.1.0 or 8.8.8.0) inside your network, even if they seem unused.
How to Find Your Public and Private IP
Your public IP is shown on our homepage (and at the top of this page); your private IP is in your device's network settings.
| Device | Private IP |
|---|---|
| Windows | ipconfig → IPv4 Address |
| macOS | ipconfig getifaddr en0, or System Settings › Wi-Fi › Details › TCP/IP |
| Linux | ip addr or hostname -I |
| iPhone, iPad | Settings › Wi-Fi › ⓘ next to your network › IP Address |
| Android | Settings › Network › Wi-Fi › your network › IP address (menu names vary) |
Step by step for every device, plus printers, Roku and game consoles: how to find my IP address.
Your router's address is the "Default Gateway" in the same place: see 192.168.1.1 and how to find your router's IP. For IPv6, see what is IPv6.
Frequently Asked Questions
What are the private IP address ranges?
Is 172.32.0.1 a private IP?
Is 100.64.0.1 a private IP?
What is my private IP address?
ipconfig on Windows (IPv4 Address) or ipconfig getifaddr en0 on a Mac.Can two devices have the same private IP?
Why do I have a 169.254 address?
ipconfig /release then ipconfig /renew on Windows).Next steps