Private IP Address Ranges and How to Tell Them Apart | The Three Blocks 10, 172.16–172.31 and 192.168, How They Differ from Public IPs, and What 100.64, 169.254 and 127.0.0.1 Mean
You open your router's settings or your computer's network details and see an address like “192.168.1.10”, “10.0.5.23” or “172.20.10.2”. Is that a number the outside world can see, or one that only exists inside your home or office? The “private IP addresses” that are never used on the internet are exactly three ranges defined in RFC 1918. The catch is that among addresses starting with 172, only 172.16 to 172.31 are private; 172.32 and above are ordinary public IPs. This guide covers the three ranges and how many addresses each holds, a step-by-step way to tell them apart from the first numbers alone, how they differ from public IPs and how NAT works, the other ranges that never appear on the internet such as 100.64.0.0/10 (CGNAT), 169.254.0.0/16 (link-local), 127.0.0.1 (loopback) and the documentation range 192.0.2.0/24, how they relate to the old class A, B and C, how to find out which kind your own IP is, and which range to choose for an office or home LAN, all with concrete addresses.
The short answer: there are only three private IP ranges
Private IP addresses are IPv4 addresses meant for use only inside an office or home LAN, and RFC 1918 defines the three ranges below. Any company or household may use numbers from these ranges freely, and in return they are never exchanged on the public internet. An address that falls outside all three is a public IP address used on the internet, apart from the special-purpose ranges explained later.
| Range | CIDR | Subnet mask | Addresses | In /24 blocks |
|---|---|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 255.0.0.0 | 16,777,216 | 65,536 |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 255.240.0.0 | 1,048,576 | 4,096 |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 255.255.0.0 | 65,536 | 256 |
- Addresses starting with 10: all private (10.0.0.0 to 10.255.255.255)
- Addresses starting with 172: private only when the second number is 16 to 31. 172.15.x.x and 172.32.x.x are public
- Addresses starting with 192.168: all private. 192.167.x.x and 192.169.x.x are public
- Together the three hold 17,891,328 addresses, about 0.42% of the whole IPv4 space (4,294,967,296 addresses)
How private IPs differ from public IPs, and how NAT works
A public (global) IP address is assigned so that it is unique across the whole internet, and is managed by internet service providers (ISPs) and data centres. A private IP address only has to be unique within its own LAN: your 192.168.1.10 and your neighbour's 192.168.1.10 can point to completely different devices without any problem.
| Public IP address | Private IP address | |
|---|---|---|
| Where it is used | The internet | Inside a LAN such as an office or home |
| Duplicates | Only one in the world | The same number is fine on a different LAN |
| Who assigns it | Leased from an ISP or cloud provider | You decide (for example via the router's DHCP) |
| Cost | A static IP is often a paid monthly option | Free |
| Connections from outside | Reach it directly | Cannot reach it as is (port forwarding etc. needed) |
Computers and phones on a LAN can use the internet with a private IP because the router performs NAT (strictly speaking NAPT, where many devices share one public IP; it is also called IP masquerading). When your computer connects to a website, the router rewrites the source private IP and port to its own public IP and a different port before sending the packet out, then passes the reply back to the original device. However many devices are online at home, the website only ever sees the router's single public IP.
- If you look up “my IP address”, your computer's settings show a private IP while an IP lookup website shows a public IP. Both are correct; they are just looking from different places
- To reach a camera or NAS at home from outside, set up port forwarding on the router to decide which port on the public IP is passed to which device on the LAN
- There are only about 4.3 billion IPv4 addresses, so it is impossible to give every device a public IP. Private IPs and NAT also help make up for that shortage
Telling them apart from the first numbers alone
You can tell whether an IP address is private just by looking at the first or second number (octet) from the left. The third and fourth numbers make no difference.
- 1
Check whether the first number is 10
If it is 10, the address is private, full stop. Both 10.0.0.1 and 10.255.255.255 are inside the range. 9.255.255.255 and 11.0.0.1 sit right next to it but are public.
- 2
If the first number is 172, check whether the second is 16 to 31
172.16.0.1, 172.20.10.2 and 172.31.255.255 are private; 172.15.255.255 and 172.32.0.0 are public. Of all addresses starting with 172, only the 16 values of the second number from 16 to 31 are private.
- 3
If the first number is 192, check whether the second is 168
192.168.0.1 and 192.168.255.254 are both private. 192.167.255.255 and 192.169.0.1 are public; starting with 192 is not enough to make an address private.
- 4
If none of these match, check the special-purpose ranges
Addresses starting with 100.64 to 100.127, 169.254 or 127, among others, are not private but are not used on the internet either. If an address is not in the table in the next section, it is a public IP address.
172.16.0.0/12 looks like an odd range because /12 splits partway through the second octet. The /12 mask is 255.240.0.0, so only the top 4 bits of the second octet belong to the network part. In binary 172.16 is 10101100.00010000 and 172.31 is 10101100.00011111, so the 16 values (16 to 31) that share the top 4 bits “0001” form one block. 172.32 is 10101100.00100000; its top 4 bits change to “0010”, so it is outside the range.
Other addresses that are never used on the internet
Besides the three RFC 1918 ranges, other ranges are set aside for specific purposes and are not used on the internet. The tool classifies addresses with the ranges below, checking them from top to bottom.
| CIDR | Range | Addresses | Purpose | Defined in |
|---|---|---|---|---|
| 0.0.0.0/8 | 0.0.0.0 – 0.255.255.255 | 16,777,216 | “This network” (e.g. an unset source address) | RFC 791 |
| 10.0.0.0/8 | 10.0.0.0 – 10.255.255.255 | 16,777,216 | Private address | RFC 1918 |
| 100.64.0.0/10 | 100.64.0.0 – 100.127.255.255 | 4,194,304 | Shared address space (for carrier-grade NAT) | RFC 6598 |
| 127.0.0.0/8 | 127.0.0.0 – 127.255.255.255 | 16,777,216 | Loopback (the device itself) | RFC 1122 |
| 169.254.0.0/16 | 169.254.0.0 – 169.254.255.255 | 65,536 | Link-local (self-assigned when DHCP fails) | RFC 3927 |
| 172.16.0.0/12 | 172.16.0.0 – 172.31.255.255 | 1,048,576 | Private address | RFC 1918 |
| 192.0.0.0/24 | 192.0.0.0 – 192.0.0.255 | 256 | IETF protocol assignments | RFC 6890 |
| 192.0.2.0/24 | 192.0.2.0 – 192.0.2.255 | 256 | Documentation (TEST-NET-1) | RFC 5737 |
| 192.168.0.0/16 | 192.168.0.0 – 192.168.255.255 | 65,536 | Private address | RFC 1918 |
| 198.18.0.0/15 | 198.18.0.0 – 198.19.255.255 | 131,072 | Benchmark testing | RFC 2544 |
| 198.51.100.0/24 | 198.51.100.0 – 198.51.100.255 | 256 | Documentation (TEST-NET-2) | RFC 5737 |
| 203.0.113.0/24 | 203.0.113.0 – 203.0.113.255 | 256 | Documentation (TEST-NET-3) | RFC 5737 |
| 224.0.0.0/4 | 224.0.0.0 – 239.255.255.255 | 268,435,456 | Multicast (class D) | RFC 5771 |
| 255.255.255.255/32 | Just 255.255.255.255 | 1 | Limited broadcast | RFC 919 |
| 240.0.0.0/4 | 240.0.0.0 – 255.255.255.255 | 268,435,456 | Reserved (class E) | RFC 1112 |
The last two rows overlap. 240.0.0.0/4 runs all the way to 255.255.255.255, but the tool classifies 255.255.255.255 alone as limited broadcast first, so the addresses classified as reserved are 240.0.0.0 to 255.255.255.254. Any address that falls in none of these ranges (such as 8.8.8.8 or 1.1.1.1) is classified as a public address.
What the addresses you often see mean (100.64, 169.254, 127.0.0.1 and more)
Of the special-purpose ranges, these are the ones you are likely to run into in everyday settings and troubleshooting. Knowing what the number means gives you a good idea of what is going on.
- 100.64.0.0 to 100.127.255.255 (CGNAT): used by ISPs and mobile carriers when several customers share one public IP. If your router's WAN (internet-side) IP is in this range, you have not been given a public IP of your own, and port forwarding will not make you reachable from outside. 100.63.255.255 and 100.128.0.0 are outside the range and public
- 169.254.x.x (link-local): the address a computer gives itself when it cannot get an IP from a DHCP server. If you see it, suspect an unplugged LAN cable, failed Wi-Fi authentication or a router whose DHCP has stopped. You cannot reach the internet with this address
- 127.0.0.1 (loopback): points to the device itself, the same as “localhost”. Used, for example, to check a web server you are developing on your own computer. All 16,777,216 addresses in 127.0.0.0/8 point back to the device itself
- 0.0.0.0: means “not decided yet” or “any address”. A server listening on 0.0.0.0 accepts connections on every address the machine has
- 192.0.2.x, 198.51.100.x and 203.0.113.x (TEST-NET): numbers for use as examples in manuals and technical books, set aside so they never clash with anyone's real address
- 224.0.0.0 to 239.255.255.255 (multicast): numbers for delivering the same traffic to many devices at once. Used for device discovery on a LAN, such as mDNS on 224.0.0.251 and SSDP on 239.255.255.250
- 255.255.255.255 (limited broadcast): sends to every device on the same network. A device that has not yet received an IP via DHCP uses it to look for a DHCP server
Within the private ranges there are also fixed numbers that particular devices and services tend to use. Home router admin pages are often at 192.168.0.1 or 192.168.1.1, iPhone Personal Hotspot uses 172.20.10.x (172.20.10.0/28, with 14 usable addresses from 172.20.10.1 to 172.20.10.14), Docker's default network is 172.17.0.0/16 and the AWS default VPC is 172.31.0.0/16. All of these sit inside one of the three ranges.
How the ranges relate to classes A, B and C
The three private ranges line up with the old idea of address “classes”. Until the early 1990s, IPv4 addresses were divided into classes by their first number, and each class had a fixed network-part length. RFC 1918 set aside one class A network (10), 16 class B networks (172.16 to 172.31) and 256 class C networks (192.168.0 to 192.168.255) for private use.
| Class | First number | Old network part | Private range |
|---|---|---|---|
| A | 0–127 | /8 | 10.0.0.0/8 (one class A) |
| B | 128–191 | /16 | 172.16.0.0/12 (16 class Bs) |
| C | 192–223 | /24 | 192.168.0.0/16 (256 class Cs) |
| D | 224–239 | None | Multicast |
| E | 240–255 | None | Reserved |
Today CIDR (classless addressing) is used, and a class no longer decides the size of a network. You are free to cut 10.0.0.0/8 into /24s or to combine parts of 192.168.0.0/16 into a /22. Classes still appear in certification exams such as CCNA, though. The tool's “Class (old classful scheme)” row is decided by the first number alone, so 100.64.0.1 (CGNAT) shows as class A and 169.254.1.1 as class B, independently of whether the address is private. Read the class and the address type as two separate things.
Finding out which kind your own IP address is
The IP address on your own device and the IP address the internet sees are found in different places. Comparing the two tells you where NAT is happening.
- 1
Look at the IP address on your device
On Windows, run ipconfig in Command Prompt and read “IPv4 Address”. On macOS, open the details of the connected Wi-Fi or Ethernet connection under System Settings → Network. On iPhone or Android, open the details of the connected network in the Wi-Fi settings. On a home or office LAN this is normally a private IP address.
- 2
Look at the WAN-side IP address of your router
Check the internet-side IP address on the status page of the router's admin screen (such as 192.168.0.1 or 192.168.1.1). If it is a public IP, the router is doing the NAT. If it is in 100.64 to 100.127, you are behind CGNAT. If it is 10.x.x.x or 192.168.x.x, there is another router above yours (a double-router setup).
- 3
Look at the IP address the internet sees
The number shown by an IP lookup website is the public IP that websites see. If it matches the router's WAN side, your router holds the public IP; if it differs, your ISP is doing another layer of NAT.
- 4
Check the type and range with the tool
Enter the number you found into the Subnet Calculator to see its address type and matching range. Add a prefix length, as in “192.168.1.10/24”, and you also get the usable IP range and host count for that LAN.
If you see an address starting with 169.254, your device did not get an IP from the router. Reconnect the cable or Wi-Fi, restart the router, then check again.
Which range to choose for an office or home LAN
When you build a new LAN or change the LAN side of a router, you may use any of the three ranges. Choosing by size alone gives the table below, but in practice not overlapping with other networks matters more.
| Use | Suitable range | Why |
|---|---|---|
| Home or small office (a few to a few dozen devices) | 192.168.x.0/24 | Works with the router's default settings. A /24 gives 254 hosts |
| Mid-sized company (split by site or department) | Inside 172.16.0.0/12 | Room for 4,096 /24s, so it is easy to give each site a /20 or similar |
| Large company or cloud VPCs | Inside 10.0.0.0/8 | Room for 65,536 /24s, enough to give every VPC its own /16 |
- If people will connect to the office over VPN from home, do not use 192.168.0.0/24 or 192.168.1.0/24 for the office. Many home routers use the same numbers, so the home LAN and the office LAN overlap and the connection breaks
- If you plan to link cloud VPCs with on-premises networks, or sites with each other over VPN, allocate ranges up front so they never overlap
- Avoid ranges that software and devices use automatically, such as Docker (172.17.0.0/16) and iPhone Personal Hotspot (172.20.10.0/28)
- Do not use 100.64.0.0/10 on your own LAN. ISPs' CGNAT and some VPN services use this range, and an overlap stops things from connecting
- Once you have chosen a range, the tool's “Subnetting (VLSM)” tab builds an allocation plan from the number of hosts each department or segment needs
For example, if you take 10.20.0.0/16 for head office, 10.21.0.0/16 for a branch and 10.100.0.0/16 for the cloud out of 10.0.0.0/8, nothing will clash when you later connect them by VPN. When choosing a range, check the ranges of the networks you will connect to as well as your own. For how to work out network addresses and host counts when you cut the chosen range into subnets, see How to Calculate a Subnet Mask.
Common mistakes with private IP addresses
- Assuming anything starting with 172 is private: only 172.16 to 172.31 are. 172.32 and above, and 172.0 to 172.15, are public
- Assuming anything starting with 192 is private: only 192.168 is. 192.169.x.x and 192.0.1.x are public (192.0.2.x is for documentation)
- Thinking 169.254 is a number you set yourself: it is a sign that DHCP failed, not an address to use as a static IP
- Thinking 100.64 to 100.127 is private: it is not RFC 1918 private space but shared address space for CGNAT. Do not use it on your own LAN
- Thinking hiding your private IP keeps you safe: someone knowing your private IP does not by itself let them in. Conversely, a device with a forwarded port can be reached by anyone through the public IP
- Using the same range on both sides of a double router: if the upper router's LAN and the lower router's LAN are both 192.168.1.0/24, the routes clash and traffic stops. Change the lower router's LAN side to 192.168.2.0/24 or similar
- Writing server access rules with 172.0.0.0/8 or 192.0.0.0/8: this lets in public IPs too. Use the three blocks 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16
When in doubt, the surest check is to type the number straight into the tool and read the “Address type”. Note that this article and the tool cover IPv4 only. In IPv6, fc00::/7 (unique local addresses) plays the role of RFC 1918 and fe80::/10 is link-local, but with IPv6 it is normal to give devices global addresses directly.
FAQ
- What are the private IP address ranges?
- The three ranges defined in RFC 1918: 10.0.0.0 to 10.255.255.255 (10.0.0.0/8), 172.16.0.0 to 172.31.255.255 (172.16.0.0/12) and 192.168.0.0 to 192.168.255.255 (192.168.0.0/16). They hold 16,777,216, 1,048,576 and 65,536 addresses respectively, 17,891,328 in total.
- Is an IP address starting with 172 private?
- Only when the second number is 16 to 31. 172.16.0.1 and 172.31.255.255 are private; 172.15.255.255 and 172.32.0.0 are public. The mask of 172.16.0.0/12 is 255.240.0.0, so the range is set by the top 4 bits of the second octet, which groups the 16 values from 16 to 31 together.
- What is the difference between a private IP and a public IP?
- A public IP is unique across the whole internet; a private IP is only used inside a LAN. Devices on a LAN keep their private IPs and use the internet by sharing the router's public IP through NAT. To connect to a LAN device directly from outside, you need port forwarding on the router.
- What is a 100.64.x.x IP address?
- 100.64.0.0 to 100.127.255.255 (100.64.0.0/10) is shared address space (RFC 6598) for carrier-grade NAT (CGNAT) used by ISPs and mobile carriers. If your router's internet-side IP is in this range, the public IP is shared with other customers, and port forwarding will not make you reachable from outside.
- Why does my IP address start with 169.254?
- When a computer cannot get an IP address from a DHCP server (usually the router), it assigns itself an address from 169.254.0.0/16 (link-local, RFC 3927). You cannot reach the internet with this address, so check the cable or Wi-Fi connection and the router.
- What is 127.0.0.1?
- It is the loopback address that points to the device itself, the same as localhost. All 16,777,216 addresses in 127.0.0.0/8 are reserved for loopback and never leave the device. It is used, for example, to access a server running on your own computer.
- Can I use 10.x.x.x for my home LAN?
- Yes. You are free to use any of the three ranges, and 10.x.x.x is neither faster nor slower. Home routers often default to 192.168.x.x, but if the numbers clash with a work-from-home VPN, changing the router's LAN side to something like 10.x.x.0/24 can fix it.
Tools in this article
Related articles
How to Calculate a Subnet Mask | Network Address, Broadcast Address and Host Count from CIDR, with a Cheat Sheet
“What is the network address of 192.168.1.100/26?” “How many devices fit in a /27?” “What prefix is 255.255.240.0?” The textbook way to do subnet maths is to convert to binary and take an AND, but once you get used to it you can work everything out in your head using the “block size”. This guide explains how CIDR notation relates to the subnet mask, how to find the network address, broadcast address and usable IP range both in binary and mentally, worked examples that split in the third octet, host counts and the addresses reserved by AWS, Azure and Google Cloud, how to choose a prefix length from the number of devices you need, VLSM subnetting, checking whether two IPs are in the same subnet, converting IP ranges to CIDR and aggregating them, wildcard masks, and the most common mistakes, all with concrete numbers.
Read article →Full Moon Calendar 2027: Dates, Times and Names | The Supermoon Is January 22, the Strawberry Moon June 18–19, and There Is No Blue Moon
“When is the next full moon?” “What date is the Strawberry Moon this year?” “When can I see the supermoon?” Full moon dates shift every year, and websites name and count supermoons a little differently, so the more you search the more confusing it gets. This article lists all 12 full moons of 2027 in Universal Time (UTC) and US Eastern time, worked out with the same formulas as the Moon Phase Calendar & Birthday Moon tool (Meeus, Astronomical Algorithms, accurate to within a minute), together with their names from the Wolf Moon to the Cold Moon and the distance to the moon. It also explains, with numbers, which full moon is the biggest and smallest of 2027, why 2027 has neither a Blue Moon nor a Corn Moon, which night to look when the exact full moon falls in daytime, and how the date changes between time zones.
Read article →Born in January or Early February? When Your Yakudoshi Falls, Counting From Risshun, and How to Find Your Nine Star Ki Birth Star and Happo-fusagari Years | In 2027 It Is 9 Purple Fire
“I heard my unlucky years shift by one because I was born in January.” “I was born on Setsubun, so which birth star am I?” “Someone told me my happo-fusagari year and my yakudoshi fall in the same year.” Japanese unlucky years (yakudoshi) and Nine Star Ki are hardest to pin down for people born between January 1 and Setsubun. This article explains how your yakudoshi changes depending on whether a shrine starts the year on New Year’s Day or at Risshun, why Risshun moves between February 3 and 5, how to work out your birth star, which birth years are in happo-fusagari from 2026 to 2029, and why women’s honyaku at 19 and 37 always coincides with happo-fusagari. Every figure was checked with the Yakudoshi Calculator.
Read article →