Special-Use Addresses: Private, Loopback, Link-Local, Documentation and Shared Ranges
The IPv4 and IPv6 ranges that aren't ordinary Internet addresses: private and unique local space, loopback, link-local, 0.0.0.0 and ::, documentation and benchmarking ranges, carrier-grade NAT space, and the prefixes used to embed IPv4 addresses in IPv6 for translation.
kvi5hnuCode Sprout team member14 min readOn this page
Not every address is an ordinary Internet address. Some ranges are reserved for private networks, some only work inside one host or on one link, some are set aside for examples in documentation, and some have meanings only for particular protocols. You'll meet all of them constantly: in home networks, container platforms, cloud VPCs (virtual private clouds, a customer's private network inside a cloud provider), firewall rules and log files. Knowing them at a glance saves a lot of debugging.
The official lists are two registries kept by IANA (the Internet Assigned Numbers Authority, article 5), the IPv4 Special-Purpose Address Registry and the IPv6 Special-Purpose Address Registry (RFC 6890, updated by RFC 8190 and individual RFCs since). For each range, they record whether it may appear as a packet's source, as its destination, whether routers may forward it, and whether it's reachable across the Internet. This article goes through the ranges that matter in practice. The tables below follow the registries as of their October 2025 update.
IPv4 special-use ranges

| Range | Name | What it's for | Routed on the Internet? |
|---|---|---|---|
| 0.0.0.0/8 | "This network" | Source only, before a host knows its address. 0.0.0.0 itself also means "any address" in sockets and "default" in routes | No |
| 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 | Private use (RFC 1918) | Internal networks, usually behind NAT (address translation, explained below) | No |
| 100.64.0.0/10 | Shared address space | Between a carrier-grade NAT and its customers (article 35) | No |
| 127.0.0.0/8 | Loopback | Traffic that never leaves the host | Never leaves the host |
| 169.254.0.0/16 | Link-local | Self-assigned when no DHCP server hands out an address (article 32); also used by cloud metadata services | Not forwarded at all |
| 192.0.0.0/24 | IETF protocol assignments | Small reservations for particular protocols | Depends on the reservation |
| 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | Documentation (TEST-NET-1, -2, -3) | Examples in books, docs and this course | No |
| 198.18.0.0/15 | Benchmarking | Testing network equipment in labs | No |
| 224.0.0.0/4 | Multicast | Group destinations (article 12) | Only with multicast routing |
| 240.0.0.0/4 | Reserved (old class E) | Nothing; many systems refuse it | No |
| 255.255.255.255/32 | Limited broadcast | Every host on the local link | Never forwarded |
A few deserve more explanation.
Private addresses
The three private-use ranges, defined in RFC 1918, can be used by anyone inside their own network without asking a registry. The price is that they aren't unique: thousands of networks use 192.168.1.0/24 at the same moment, so these addresses can't be routed on the public Internet. To reach the Internet, a private network goes through network address translation (NAT), which rewrites private source addresses to a public one (article 35).
The 172.16.0.0/12 range covers 172.16.0.0 to 172.31.255.255, which is 16 consecutive old class B networks. A common mistake is to treat everything starting with 172 as private: addresses from 172.32 upward, and below 172.16, are ordinary public addresses.
Private ranges cause trouble when two private networks must be joined, for example after a company merger or when a VPN connects a home network to an office, and both use the same range. Choosing an unusual subnet such as 10.87.0.0/16 instead of 192.168.0.0/24 or 10.0.0.0/24 makes such clashes less likely.
Shared address space for carrier NAT
100.64.0.0/10 was set aside in 2012 for carrier-grade NAT: an ISP (Internet service provider) that doesn't have enough public addresses puts its customers behind its own NAT and numbers the link between that NAT and each customer's router from this range. It isn't private-use space, because the customer's own network may already use RFC 1918 addresses. If your router's "WAN" (wide area network, the Internet-facing side) address is in 100.64.0.0/10, you're behind your ISP's NAT, which matters for hosting servers and for peer-to-peer applications (article 36). VPN products such as Tailscale also use this range for their own addresses.
Loopback and 0.0.0.0
127.0.0.0/8 is all loopback. Packets to any address in it go back to the host itself and never reach a network interface. Most people only use 127.0.0.1, but on Linux every address in the range answers. Here's the local routing table of a lab host and a ping to an unusual loopback address. The first line is the key: the whole 127.0.0.0/8 is a local route, so every address in it belongs to this host:
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
64 bytes from 127.42.42.42: icmp_seq=1 ttl=64 time=0.036 ms
0.0.0.0 has several meanings depending on where it appears:
- As a packet's source, it means "I don't have an address yet", used for example by DHCP clients (article 29).
- When a server binds to it, it means "accept connections on every local address".
ssshows such sockets as0.0.0.0:port. The IPv6 equivalent is[::]:port. - In a routing table,
0.0.0.0/0is the default route.
As a destination, it's not valid on the wire, but Linux treats a connection to 0.0.0.0 as a connection to the local host. In the lab, a program listens on two "any" sockets (IPv4 and IPv6) and on 127.0.0.1, then connects to 0.0.0.0 and ends up talking to 127.0.0.1:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:8080 0.0.0.0:*
LISTEN 0 128 127.0.0.1:9090 0.0.0.0:*
LISTEN 0 128 [::]:8080 [::]:*
connect to 0.0.0.0:9090 -> ('127.0.0.1', 9090) from ('127.0.0.1', 39236)
Documentation and benchmarking ranges
The three TEST-NET /24s for IPv4, plus 2001:db8::/32 and 3fff::/20 for IPv6, exist so that examples never accidentally point at someone's real network. They're never routed on the Internet. Every address in this course's lab output comes from these ranges, so when you see 192.0.2.10 in an example, it stands for "your client's address". Use them in your own documentation, tutorials and test fixtures too.
198.18.0.0/15 is for benchmarking network devices in isolated test labs, so that test traffic can't collide with real addresses.
IPv6 special-use ranges
| Prefix | Name | What it's for |
|---|---|---|
| ::/128 | Unspecified | Source before a host has an address; "any" in sockets |
| ::1/128 | Loopback | The host itself (there's only one loopback address in IPv6) |
| ::ffff:0/96 | IPv4-mapped | IPv4 addresses inside IPv6 software (article 10); never in packets |
| 64:ff9b::/96 | Well-known translation prefix | IPv4 addresses embedded for NAT64 (below and article 38) |
| 64:ff9b:1::/48 | Local-use translation prefix | Same, for translators inside one network |
| 100::/64 | Discard-only | Traffic deliberately routed into a black hole, for example to drop attack traffic |
| 2001::/32 | Teredo | A legacy IPv6-over-UDP tunnel, now rarely used: native IPv6 replaced it (article 38) |
| 2001:db8::/32 and 3fff::/20 | Documentation | Examples. 3fff::/20 (added 2024) is big enough for realistic multi-site examples |
| 2002::/16 | 6to4 | A legacy automatic tunneling scheme; its public relay service was deprecated in 2015 (RFC 7526) |
| 5f00::/16 | SRv6 SIDs | Segment Routing over IPv6 identifiers inside operator networks (added 2024) |
| fc00::/7 | Unique local addresses (ULA) | Private addressing within a site or group of sites |
| fe80::/10 | Link-local unicast | Every IPv6 interface, valid on one link only |
| ff00::/8 | Multicast | Group destinations (article 12) |
Ordinary global unicast addresses all come from 2000::/3 today. That's one eighth of the IPv6 space; the rest is held in reserve.
Unique local addresses
IPv6's equivalent of private addresses is the unique local address (ULA) range, fc00::/7. In practice only the upper half, fd00::/8, is used: a site picks a random 40-bit Global ID and gets its own /48, such as fd12:3456:789a::/48. Because the ID is random, two sites that later connect are very unlikely to clash, which fixes IPv4's merger problem. (The lower half, fc00::/8, was meant for centrally assigned IDs that were never set up.)
ULAs aren't routed on the Internet. Unlike IPv4 private space, a host usually has a ULA and a global address at the same time, using the ULA for internal services and the global address for the Internet, without NAT.
How software classifies addresses
Programming libraries expose these registries. Python's ipaddress module, for example, has is_private, is_global and similar properties. Here's how Python 3.13 in the lab classifies a set of IPv4 addresses:
address private global loopback link-local multicast reserved
10.20.30.40 yes - - - - -
172.31.255.1 yes - - - - -
192.168.1.1 yes - - - - -
100.64.0.1 - - - - - -
127.0.0.1 yes - yes - - -
169.254.10.20 yes - - yes - -
192.0.2.10 yes - - - - -
198.18.0.1 yes - - - - -
224.0.0.251 - yes - - yes -
240.0.0.1 yes - - - - yes
0.0.0.0 yes - - - - -
203.0.113.200 yes - - - - -
And IPv6:
address private global loopback link-local multicast
::1 yes - yes - -
:: yes - - - -
fe80::1 yes - - yes -
fd12:3456:789a::1 yes - - - -
2001:db8::1 yes - - - -
3fff::1 yes - - - -
64:ff9b::c000:20a - yes - - -
ff02::1 - yes - - yes
::ffff:192.0.2.10 yes - - - -
Two things in this output surprise people:
is_privatemeans "not globally reachable", following the registries. That's why documentation (192.0.2.10, 2001:db8::1, 3fff::1), benchmarking (198.18.0.1), loopback and link-local addresses all show as "private", not just the RFC 1918 ranges.- 100.64.0.1 is neither private nor global. Python deliberately excludes the shared address space from both, because it's private to one ISP but must not be confused with your own private network.
- Multicast shows as global.
is_globalonly checks the special-purpose registries, and the multicast ranges aren't listed there, so224.0.0.251andff02::1come out as global even though they never leave the local link. Multicast has its own scope rules, covered in article 12.
Addresses for IPv4/IPv6 translation
A network that runs only IPv6 still needs to reach IPv4-only servers. A NAT64 translator (article 38) does this by representing every IPv4 address as an IPv6 address, an IPv4-embedded IPv6 address, built from an IPv6 prefix plus the 32-bit IPv4 address (RFC 6052).
The prefix is either the well-known prefix 64:ff9b::/96 or one of the operator's own prefixes. Six prefix lengths are allowed: /32, /40, /48, /56, /64 and /96. One rule complicates the shorter ones: bits 64 to 71 (byte 8) must be zero, so for the /40, /48 and /56 formats the IPv4 address is split around that byte.

Here's 198.51.100.16 embedded with a prefix of each length, computed in the lab by following the RFC's byte layout. First convert the IPv4 address to hex, one byte at a time: 198 = c6, 51 = 33, 100 = 64, 16 = 10, so it's c6 33 64 10. Those four bytes are then placed where the diagram shows. With the well-known /96 prefix it's simply 64:ff9b::c633:6410, which can also be written 64:ff9b::198.51.100.16:
2001:db8::/32 + 198.51.100.16 -> 2001:db8:c633:6410::
2001:db8:100::/40 + 198.51.100.16 -> 2001:db8:1c6:3364:10::
2001:db8:122::/48 + 198.51.100.16 -> 2001:db8:122:c633:64:1000::
2001:db8:122:300::/56 + 198.51.100.16 -> 2001:db8:122:3c6:33:6410::
2001:db8:122:344::/64 + 198.51.100.16 -> 2001:db8:122:344:c6:3364:1000:0
64:ff9b::/96 + 198.51.100.16 -> 64:ff9b::c633:6410
64:ff9b::198.51.100.16 parses as 64:ff9b::c633:6410
The /96 form is by far the most common, because the IPv4 address is easy to spot at the end. Mobile networks that run IPv6-only (many do) use it to give phones access to IPv4-only websites. Today the phones also run a small local translator, the CLAT (customer-side translator) of 464XLAT (RFC 6877), so apps that still use IPv4 sockets or IPv4 literals keep working. Enterprise and campus networks are moving the same way: in an "IPv6-mostly" network, DHCPv4 option 108 (RFC 8925) tells hosts that can live without IPv4 to skip it, and those hosts reach IPv4 servers through NAT64.
Common questions
Is every address starting with 172 private?
No. The private range is 172.16.0.0/12, which runs from 172.16.0.0 to 172.31.255.255. Addresses whose second byte is below 16 or above 31 are ordinary public addresses.
Can I use 127.0.0.2 or 127.1.2.3?
Yes, on Linux and most systems the whole 127.0.0.0/8 range reaches the local host. Some services bind to different loopback addresses so they can share a port number. macOS configures only 127.0.0.1 by default, so other loopback addresses must be added before use.
What's the difference between 169.254.x.x and 192.168.x.x?
169.254.0.0/16 is link-local: hosts assign it to themselves when no DHCP server answers, and it's valid only on one link. Routers never forward it. 192.168.0.0/16 is private: it's assigned on purpose and can be routed inside a private network. Seeing a 169.254 address on a laptop usually means DHCP failed.
Can I use the documentation ranges in my private lab network?
Technically they're not routed on the Internet, so nothing breaks, and this course's lab does so. But they're meant for documentation, and mixing them into a real network confuses people reading your configs. For a real internal network, use RFC 1918 space or a ULA.
Why can't I just use 240.0.0.0/4 now that IPv4 has run out?
Because much of the Internet's equipment treats it as invalid and drops it: Windows refuses to use it, and many routers, firewalls and other systems reject it. Changing all of them would take as long as deploying IPv6. (Linux has accepted 240/4 as ordinary unicast since 2008, but that only helps inside a network you fully control.) Proposals to reclassify it have never been adopted.
Does fe80::/10 really mean only the first 10 bits?
Yes, but the standard says the next 54 bits must be zero, so in practice every link-local address starts with fe80:: followed by the 64-bit interface identifier.
Is a ULA the same as an IPv6 private address behind NAT?
No. ULAs are usually used alongside global addresses, not instead of them, and IPv6 networks normally don't use NAT. A host talks to internal services from its ULA and to the Internet from its global address.
Summary
- IANA's special-purpose registries define which ranges are special and whether each can be a source, a destination, forwarded or reached globally.
- IPv4: 10/8, 172.16/12 and 192.168/16 are private (use NAT for the Internet). 100.64/10 is for carrier-grade NAT. 127/8 is loopback. 169.254/16 is link-local. 0.0.0.0 means "no address yet" as a source, "any" when binding and "default" in routes. 192.0.2/24, 198.51.100/24 and 203.0.113/24 are for documentation, 198.18/15 for benchmarking, 224/4 multicast, 240/4 reserved and 255.255.255.255 limited broadcast.
- IPv6:
::unspecified,::1loopback, fe80::/10 link-local, fd00::/8 unique local (with a random 40-bit ID), ff00::/8 multicast, 2001:db8::/32 and 3fff::/20 documentation, 64:ff9b::/96 for NAT64, and all global unicast from 2000::/3. - Libraries such as Python's
ipaddressclassify addresses from the registries. "Private" there means "not globally reachable". - NAT64 embeds an IPv4 address in an IPv6 prefix of /32 to /96, keeping bits 64–71 zero. With 64:ff9b::/96, 198.51.100.16 becomes
64:ff9b::c633:6410.
Practice questions
1. Which of these are RFC 1918 private addresses: 10.255.0.1, 172.31.255.254, 100.64.0.1, 169.254.1.1, 192.0.2.1, 192.168.200.1?
Answer
10.255.0.1 (in 10.0.0.0/8), 172.31.255.254 (the top of 172.16.0.0/12) and 192.168.200.1 (in 192.168.0.0/16). The other three are special but not RFC 1918: 100.64.0.1 is carrier-grade NAT shared space, 169.254.1.1 is link-local and 192.0.2.1 is documentation. (Python's is_private would still say True for the last two, because it means "not globally reachable".)
2. A laptop shows the address 169.254.33.7. What most likely happened?
Answer
It didn't get an answer from a DHCP server, so it assigned itself an IPv4 link-local address. It can talk only to other hosts on the same link and has no route to anywhere else.
3. A home router reports its WAN address as 100.72.14.3. What does that tell you?
Answer
The address is in 100.64.0.0/10, the shared address space, so the ISP is running carrier-grade NAT. The router doesn't have a public IPv4 address, so incoming connections from the Internet can't reach it directly.
4. What is 192.0.2.33 embedded in the well-known NAT64 prefix?
Answer
192.0.2.33 is c0.00.02.21 in hex, so 64:ff9b::c000:221, which can also be written 64:ff9b::192.0.2.33.
5. A server log shows a client address of ::ffff:203.0.113.9. Did the client use IPv6?
Answer
No. That's an IPv4-mapped address: the server uses an IPv6 socket that also accepts IPv4 connections, and the client actually connected over IPv4 from 203.0.113.9.
6. Why should a ULA prefix's Global ID be random?
Answer
So that two networks that pick ULA prefixes independently are very unlikely to choose the same one. If they later connect, through a merger or a VPN, their addresses don't clash and nothing has to be renumbered.
7. A web service binds to 0.0.0.0. From where can it be reached?
Answer
From any address the host has: loopback, and every interface on every network the host is connected to, subject to firewalls. To make it reachable only from the host itself, bind to 127.0.0.1 instead.
Previous: IPv6 Addresses: Notation, Prefixes, Interface Identifiers and Privacy Addresses

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.