Key takeaways
- Public and private IP address ranges explained in plain terms: the three RFC 1918 blocks, the old address classes, CIDR notation, and special ranges.
When you set up a router, read a firewall rule, or work out why two devices cannot see each other, the first real decision is understanding which block of addresses you are looking at. An IP range is not just a pair of numbers. It tells you whether traffic stays inside your own network, crosses the public internet, or belongs to a reserved purpose that should never be handed to an ordinary device at all.
This guide is for home users setting up a first network, office staff handed an address plan they did not write, and students meeting the topic for the first time. It explains the public and private split, the three private IPv4 blocks worth memorising, the older class system that still survives as shorthand, CIDR notation for writing ranges precisely, and the special ranges reserved for loopback, link-local and multicast traffic.
As an Amazon Associate we earn from qualifying purchases.
How to Choose
Start With the Split Between Public and Private
Every IPv4 address falls into one of two camps. Public addresses are globally unique, allocated by regional registries to providers and organisations, and routable across the internet: when a device holds one, other networks around the world can in principle reach it directly. Private addresses, defined by the document known as RFC 1918, are reserved for use inside a single home or organisation. Routers on the public internet will not forward traffic addressed to them, which is why millions of homes can all use the same private addresses at once without colliding. A home router bridges the two worlds through network address translation, swapping private addresses for its single public one as traffic leaves. Learning to tell the camps apart is the first reading skill. If an address sits inside a private block, it names a device on a local network and means nothing beyond it. If it sits outside those blocks, it belongs to the open internet or to one of the special reserved ranges. That single check explains most everyday mysteries, from why a printer’s address is useless outside your house to why the address a website sees for you differs from the one your laptop shows in its own settings.
Learn the Three Private IPv4 Blocks by Heart
RFC 1918 sets aside exactly three private blocks, and they are worth memorising precisely rather than roughly. The largest is 10.0.0.0/8, running from 10.0.0.0 to 10.255.255.255, which works out to about sixteen point seven million addresses, a legacy of the old Class A allocation. The second is 172.16.0.0/12, running from 172.16.0.0 to 172.31.255.255, about one million addresses. Note the boundary carefully: only second-octet values from 16 through 31 are private, so 172.15.x.x and 172.32.x.x are ordinary public addresses, a detail that trips up many beginners. The third block is 192.168.0.0/16, running from 192.168.0.0 to 192.168.255.255, sixty-five thousand addresses in total, and the one nearly every home router uses by default, usually narrowed to a single subnet such as 192.168.0.0/24 or 192.168.1.0/24. Internet providers also use 100.64.0.0/10 for carrier-grade NAT; it behaves like private space from a subscriber’s point of view, but formally it is shared address space rather than part of RFC 1918. The working rule is simple: an address outside all three private blocks, and outside the special ranges, should be treated as public, whoever appears to be using it locally.
Use CIDR Notation to Describe Any Range Exactly
Older writing divided IPv4 space into classes based on the first octet. Class A covered 0 to 127 with a /8 boundary, Class B covered 128 to 191 at /16, and Class C covered 192 to 223 at /24. Class D, from 224 to 239, was set aside for multicast, while Class E, from 240 to 255, stayed reserved for experimental use. The classes explain the shape of the private blocks and still appear in conversation, but classless inter-domain routing, shortened to CIDR, replaced them for real allocation decades ago. In CIDR, a range is written as a starting address plus a prefix length. The notation 192.168.1.0/24 means the first twenty-four bits stay fixed, leaving eight bits free: two hundred fifty-six addresses in total, of which the network address and the broadcast address are reserved in normal use, leaving two hundred fifty-four for devices. Shorter prefixes describe bigger ranges, so a /16 holds sixty-five thousand addresses and a /8 holds over sixteen million. Being able to expand a CIDR range into its first and last address, and to spot when one range nests inside another, is the core skill behind reading routing tables, firewall rules and VPN configurations accurately instead of guessing.
Recognise the Special Ranges Before You Assign Anything
Several IPv4 ranges are reserved for jobs other than naming devices, and handing them out as ordinary addresses breaks things quietly. The block 127.0.0.0/8 is loopback: traffic sent there never leaves the device, and 127.0.0.1 is the standard address a machine uses to talk to itself. The block 169.254.0.0/16 provides link-local addressing; a device that cannot reach a DHCP server picks an address there as a fallback, so seeing one usually signals a failed assignment rather than a working setup. Multicast occupies 224.0.0.0/4 and delivers one stream to many receivers at once, quietly powering some discovery and streaming services on local networks. The documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 exist purely for examples in books and guides, so they are safe to print but must never actually be routed. IPv6 follows the same logic with different shapes: fc00::/7 marks unique local addresses, the closest analogue of private space, fe80::/10 is link-local, and ::1 is the loopback address. Before you assign, filter or troubleshoot any range, check it against this reserved list first, because a surprising number of faults turn out to be a special range used by mistake.
Which One Fits Your Situation
You Are Setting Up a Home or Small Office Network
Stay inside 192.168.0.0/16 and keep the design simple. A single /24 subnet, such as 192.168.1.0/24, provides two hundred fifty-four device addresses, far more than most homes and small offices will ever use. Pick a third octet that your router maker does not use as its own default when you can, write the chosen range on a label fixed to the router, and let the router hand out addresses from one tidy pool inside that subnet. Reserve a small slice of the pool for fixed equipment such as printers and storage boxes, so their addresses never move and every other device can always find them by the same number.
You Are Planning a Larger Internal Network or a VPN
Draw your plan from 10.0.0.0/8 and carve it into orderly /24 or /16 subnets, one per site, floor or department, so the address alone tells you where a device lives. Deliberately avoid the most common home ranges, especially 192.168.0.0/24 and 192.168.1.0/24, because remote staff whose home networks use the same block will hit confusing conflicts the moment a VPN tries to join two identical ranges together. Write the plan down, keep a simple register of which subnet belongs to which location, and leave gaps between allocations so each site can grow into a larger subnet later without forcing you to renumber anything that is already working.
You Were Handed an Address and Need to Know What It Is
Check the address against the three private blocks and the special ranges before anything else. A private result means it only has meaning inside one organisation’s network, and you will need that network’s own plan to interpret it. A public result means the address belongs to an allocated block, and registry records can show which provider holds it. A 169.254 address means the device assigned itself a fallback, and a 127 address means the device itself. This one-minute check sorts most mysteries quickly: it separates local faults you can fix yourself from addresses that belong to someone else’s network entirely.
You Are Studying Networking or Writing Documentation
Learn the classes as history and CIDR as current practice, because modern questions are always framed in prefix lengths. When you need example addresses for notes, lessons or documents, use the three documentation ranges, 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24, which exist for exactly that purpose. Practise expanding ranges by hand: give yourself a prefix such as 10.20.30.0/22 and work out its first address, last address and total size until the arithmetic feels routine. Work a few nested examples too, checking whether a small range sits inside a bigger one, because that containment question sits underneath most routing and filtering decisions you will ever document.
Common Mistakes
- Assuming every address that begins with 172 is private, when only 172.16.0.0 through 172.31.255.255 is; the rest of the 172 space is public.
- Counting a /24 range as two hundred fifty-six usable device addresses, forgetting that the network and broadcast addresses are already spoken for, leaving two hundred fifty-four.
- Numbering an internal network with public space your organisation does not hold, which works locally until the day you need to reach the real owners of those addresses.
- Treating a 169.254 address as a healthy sign, when it actually means the device failed to obtain an assigned address and fell back to link-local.
- Forgetting that loopback, multicast and the documentation ranges are reserved, and trying to assign them to ordinary computers, printers or servers.
Frequently Asked Questions
What are the three private IPv4 ranges?
The private ranges defined by RFC 1918 are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. In plain boundaries, that means 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. Any organisation may use them internally without asking anyone, routers on the public internet will not route them, and the same addresses are reused in countless separate networks worldwide at the same time.
What does the number after the slash in 192.168.1.0/24 mean?
The number is the prefix length: how many of the thirty-two bits in the address are fixed as the network portion. A /24 fixes twenty-four bits and leaves eight free, giving two hundred fifty-six addresses in the range, from 192.168.1.0 to 192.168.1.255. Smaller numbers describe larger ranges, so a /16 leaves sixteen bits free and holds sixty-five thousand addresses, while a /30 holds only four.
Is every address beginning with 192.168 on the same network?
No. The block 192.168.0.0/16 is a container holding two hundred fifty-six separate /24 networks, from 192.168.0.0/24 through 192.168.255.0/24, and each home or office picks just one of them, or occasionally a wider slice. Two houses can both use 192.168.1.0/24 without any clash because their networks never meet. A clash only appears when two such networks are joined directly, most often through a VPN tunnel.
Does IPv6 have private address ranges too?
Yes, although the design differs. Unique local addresses in fc00::/7, in practice usually handed out from fd00::/8, play the private role and are not routed on the public internet. Link-local addresses in fe80::/10 let devices talk on one local link without any configuration, and ::1 is the loopback address. Public IPv6 addresses are normally drawn from the global unicast space beginning within 2000::/3, and most networks receive a generous block to subdivide.