Special-use IPv4 addresses: loopback, APIPA, CGNAT, documentation, broadcast and more
In short: Some IPv4 ranges are reserved for special purposes. 127.0.0.0/8 is loopback, the RFC 1918 ranges are private, 169.254.0.0/16 appears when DHCP fails, 100.64.0.0/10 is used by ISPs for carrier-grade NAT, and 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are for documentation. Recognising them speeds up troubleshooting and helps write good firewall filters.
Why special ranges matter
When a user reads you an IP address over the phone, its range often explains the problem straight away. A 169.254 address means DHCP failed. A 100.64 address on a router's WAN port means the ISP is using carrier-grade NAT, so inbound connections will not work. Knowing these ranges is a basic troubleshooting skill.
The ranges
- 127.0.0.0/8, loopback: traffic to 127.0.0.1 never leaves the device. Used to test the local TCP/IP stack and for services that should only be reachable locally.
- 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, private (RFC 1918): for internal networks. Not routed on the internet; NAT is needed to reach it. Note that 172.16.0.0/12 covers 172.16.0.0 to 172.31.255.255, not just 172.16.x.x.
- 169.254.0.0/16, link-local: a device gives itself one of these (Windows calls it APIPA) when it cannot reach a DHCP server. It can only talk to the same link. Cloud providers also use 169.254.169.254 for instance metadata.
- 100.64.0.0/10, shared address space: for carrier-grade NAT inside ISPs (RFC 6598). Also used by some overlay VPNs such as Tailscale.
- 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, documentation: reserved for examples in books and guides, so copied configurations never point at a real network. This site uses them too.
- 198.18.0.0/15, benchmarking: for testing network equipment.
- 224.0.0.0/4, multicast: group addresses (see the multicast notes).
- 240.0.0.0/4, reserved: once "Class E", not usable on most systems.
- 0.0.0.0: means "this host" or "any address". A server listening on 0.0.0.0 accepts connections on every interface; a route to 0.0.0.0/0 is the default route.
- 255.255.255.255, limited broadcast: sent to every host on the local link, used by DHCP clients before they have an address.
Using them in security filters
Packets arriving from the internet should never have a private, loopback, link-local, documentation or reserved source address. These are called bogons (along with unallocated public space). Edge routers and firewalls should drop them inbound, which blocks a class of spoofed traffic. Many firewalls have a built-in bogon or "martian" filter; uRPF achieves something similar.
Quick diagnosis table
| You see | Likely meaning |
|---|---|
| PC has 169.254.x.x | No DHCP reply: cable, VLAN, DHCP server or relay problem |
| Router WAN has 100.64.x.x | ISP is using CGNAT; no public IP for inbound services |
| Router WAN has 192.168.x.x or 10.x.x.x | Another router or modem in front is doing NAT (double NAT) |
| Service listens on 127.0.0.1 only | Not reachable from the network |
| Internet traffic arriving from 10.x.x.x | Spoofed or misrouted; should be filtered |
Real-world example: the camera that could not be reached
A shop owner set up port forwarding on their router to view CCTV from their phone, but it never worked. The router's WAN address was 100.71.22.9, in the CGNAT range. The ISP shared one public address between many customers, so nothing from the internet could reach the router directly. Asking the ISP for a public IP (or using the camera vendor's cloud service) was the only fix.
Practice
What does a 169.254.x.x address on a PC usually mean?
Which range do ISPs use for carrier-grade NAT?
Name the three IPv4 ranges reserved for documentation.
Key takeaways
- 127.0.0.0/8 is loopback; RFC 1918 ranges are private.
- 169.254.0.0/16 means DHCP failed; 100.64.0.0/10 means CGNAT.
- Documentation ranges are for examples and never used on real networks.
- Drop bogon source addresses arriving from the internet.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.