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).

RangeCIDRAddressesWhere you'll see it
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216Companies, clouds (Azure and Google Cloud default networks), some routers (10.0.0.1)
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576Offices, Docker (172.17.0.0/16 by default), the AWS default VPC (172.31.0.0/16)
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536Home routers (192.168.0.1, 192.168.1.1)
Bar chart to scale of the three private IPv4 ranges: 10.0.0.0/8 with 16,777,216 addresses, 172.16.0.0/12 with 1,048,576 and 192.168.0.0/16 with 65,536
The three private ranges, to scale.

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.

Diagram: devices at home have private addresses; the router translates them to one public IP that the internet sees
Public IPPrivate IP
Who assigns itYour internet providerYour router (DHCP) or you
Reachable from the internetYes (unless a firewall blocks it)No, only inside the network
UniqueYes, worldwideOnly inside its network
CostIncluded; a static one can cost extraFree
Example8.8.8.8, 2606:4700::1111192.168.1.20, 10.0.0.5, fd12:3456::1
How to find yoursShown on our homepageNetwork 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.

Diagram of a NAT translation table: 192.168.1.10:52100 and 192.168.1.11:52100 leave as 203.0.113.45:40001 and 203.0.113.45:40002, and replies are mapped back

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.

Diagram of carrier-grade NAT: the home router gets a 100.64.0.0/10 address and the ISP translates it again to a public IP shared by many customers, breaking port forwarding
  • 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.

Nested diagram of IP address types: public addresses reachable on the internet, CGNAT inside the provider, private inside home and company networks, link-local on one link, loopback on the device itself
RangeNameWhere you'll see it
0.0.0.0/8"This network"0.0.0.0 in configs means "any address"
10.0.0.0/8Private (RFC 1918)Companies, clouds, some routers
100.64.0.0/10Shared address space (CGNAT, RFC 6598)Inside provider networks
127.0.0.0/8Loopback127.0.0.1 = this computer
169.254.0.0/16Link-local (APIPA)Device got no address from the router
172.16.0.0/12Private (RFC 1918)Offices, Docker
192.0.0.0/24IETF protocol assignmentsRare, special protocols
192.0.2.0/24 · 198.51.100.0/24 · 203.0.113.0/24Documentation (TEST-NET-1/2/3)Examples in documentation, like the ones on this site
192.168.0.0/16Private (RFC 1918)Home routers
198.18.0.0/15BenchmarkingNetwork test labs
224.0.0.0/4MulticastIPTV, discovery protocols (mDNS uses 224.0.0.251)
240.0.0.0/4ReservedUnused; 255.255.255.255 is the limited broadcast address

IPv6:

RangeNameEquivalent / use
::1LoopbackLike 127.0.0.1
fe80::/10Link-localEvery IPv6 interface has one; like 169.254.x.x but always present
fc00::/7 (fd00::/8 in practice)Unique local addressesThe IPv6 equivalent of private ranges
2000::/3Global unicastPublic IPv6 addresses
2001:db8::/32 · 3fff::/20DocumentationExamples in documentation
ff00::/8MulticastLike 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.

DevicePrivate IP
Windowsipconfig → IPv4 Address
macOSipconfig getifaddr en0, or System Settings › Wi-Fi › Details › TCP/IP
Linuxip addr or hostname -I
iPhone, iPadSettings › Wi-Fi › ⓘ next to your network › IP Address
AndroidSettings › 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?
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 and are never routed on the internet.
Is 172.32.0.1 a private IP?
No. The private block only goes from 172.16.0.0 to 172.31.255.255; 172.0.0.0–172.15.255.255 and 172.32.0.0 and above are public addresses.
Is 100.64.0.1 a private IP?
It's not an RFC 1918 private address, but it's in the shared range 100.64.0.0/10 that providers use for carrier-grade NAT (CGNAT): it only works inside your provider's network, and the internet sees a shared public IP instead.
What is my private IP address?
The address your router gives your device, usually 192.168.x.x or 10.x.x.x. Find it in your Wi-Fi or network settings, or run ipconfig on Windows (IPv4 Address) or ipconfig getifaddr en0 on a Mac.
Can two devices have the same private IP?
Yes, in different networks: millions of homes use 192.168.1.10 at the same time. Inside one network, each device needs its own address, or they conflict.
Why do I have a 169.254 address?
Your device couldn't get an address from the router (DHCP), so it gave itself one: it has no internet. Restart the router, check the cable or Wi-Fi, or renew the address (ipconfig /release then ipconfig /renew on Windows).

Next steps

Related Tools

Public / Private IP Checker
Check many addresses at once.
What Is My IP
Your public IPv4 and IPv6 address.
Subnet Calculator
Plan subnets inside the private ranges.
Port Checker
Is a forwarded port open from the internet?

Related Guides

Guide 192.168.1.1 Router Login
Log in to your router and change your Wi-Fi.
Guide Static vs Dynamic IP
Why your public IP changes, and how to keep one.
Guide What Is IPv6?
Addresses with no shortage and no need for NAT.