IP Addresses & Routing

Reserved and Special IPv4 Ranges You Should Recognize

A practical field guide to private, loopback, link-local, shared, documentation, multicast and other special IPv4 address blocks.

Key takeaways

  • 10/8, 172.16/12 and 192.168/16 are private ranges for internal networks.
  • 127/8 is loopback, and 169.254/16 is link-local, usually a sign that DHCP failed.
  • 100.64/10 is reserved for provider-side shared address space used with carrier-grade NAT.
  • 192.0.2/24, 198.51.100/24 and 203.0.113/24 exist for documentation and examples.
  • 224/4 is multicast, 240/4 is reserved and 255.255.255.255 is the local broadcast address.

Several slices of the IPv4 space are set aside for special jobs and are not handed out as ordinary public addresses. Recognizing them on sight saves troubleshooting time: an address in 169.254 tells you automatic setup failed, one in 100.64 hints at provider-level sharing, and one in 192.0.2 is only an example from a manual.

Below is each block you are likely to meet, what it means and what to do when it shows up where you didn't expect it.

The quick reference table

RFC 6890 and the IANA special-purpose address registry gather these assignments in one place.

Block Purpose Routed on the public internet?
0.0.0.0/8 "This network"; used as a source before configuration No
10.0.0.0/8 Private use (RFC 1918) No
100.64.0.0/10 Shared address space for providers (RFC 6598) No
127.0.0.0/8 Loopback No
169.254.0.0/16 Link-local (RFC 3927) No
172.16.0.0/12 Private use No
192.0.0.0/24 IETF protocol assignments Generally no
192.0.2.0/24 Documentation (RFC 5737) No
192.168.0.0/16 Private use No
198.18.0.0/15 Benchmark testing of network devices No
198.51.100.0/24 Documentation No
203.0.113.0/24 Documentation No
224.0.0.0/4 Multicast Not as ordinary unicast
240.0.0.0/4 Reserved for future use No
255.255.255.255/32 Limited broadcast No

If the slash numbers are unfamiliar, CIDR notation explains them. The CIDR calculator shows the first and last address of any block.

Private ranges

The three RFC 1918 blocks are free for anyone's internal network. Your home router almost certainly uses one. Because they repeat everywhere, they mean nothing outside the network where they are used, and a public log entry showing one usually points to something internal, such as a proxy or load balancer recording its inside neighbor.

The boundary of the middle block is worth memorizing: 172.16.0.0 through 172.31.255.255. Anything from 172.32 upward is ordinary space. See public vs. private IP addresses.

Loopback

Everything in 127.0.0.0/8 refers to the local machine, with 127.0.0.1 the usual choice. Packets sent there never reach a network cable or radio. A service listening only on loopback can be reached from the same computer and nowhere else. The full story is in loopback and 127.0.0.1.

When a device is set to get its address automatically and no DHCP server answers, many systems assign themselves a random address in 169.254.0.0/16, after checking that no neighbor is using it. Windows calls this automatic private IP addressing.

Two devices with link-local addresses on the same wire can talk to each other, but there is no gateway, so there is no internet. If you see one:

  1. Check the cable or Wi-Fi connection and password.
  2. Confirm the router is powered and its DHCP server is enabled.
  3. Renew the lease. On Windows:
ipconfig /release
ipconfig /renew
  1. If only one device is affected, restart its network adapter and look for a leftover manual setting.

Cloud platforms also use particular link-local addresses to offer virtual machines information about themselves, so you may meet one deliberately in server documentation. DHCP explained shows what should have happened.

Shared address space: 100.64/10

This block runs from 100.64.0.0 to 100.127.255.255. It was created so that providers could number the link between their translation equipment and customers' routers without colliding with the private ranges customers already use.

If your router's internet-side address falls here, you are very likely behind carrier-grade NAT, and port forwarding on your router alone will not make you reachable from outside. Some overlay VPN products also borrow this range for their virtual networks, so check which interface holds the address before drawing conclusions.

Documentation and testing blocks

192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are reserved so that manuals, tutorials and test files can use realistic-looking addresses that belong to nobody. If you write documentation, use them. If you find one in a live configuration, someone probably pasted an example without changing it.

198.18.0.0/15 is for benchmarking network equipment in lab settings. Some security and proxy software also uses it internally to hand out placeholder addresses.

Zero, broadcast and multicast

0.0.0.0 has meanings that depend on where you see it:

  • As a source address, it is what a device uses before it has one, for example in its first DHCP request.
  • In a server's listening address, it means "all IPv4 interfaces on this machine."
  • In a routing table, 0.0.0.0/0 is the default route, matching any destination that nothing more specific covers. See the default gateway.

255.255.255.255 is the limited broadcast: it reaches every host on the local segment and routers don't forward it. Each subnet also has its own broadcast address, the last one in the range, covered in network, broadcast and host addresses.

The multicast block, 224.0.0.0 through 239.255.255.255, sends one packet to a group of interested receivers. You'll see it in local device discovery (multicast DNS uses 224.0.0.251), routing protocols and some video distribution. A computer's routing table normally lists it, which is not a sign of anything strange.

The 240.0.0.0/4 block above multicast was held for future use and remains unavailable for general assignment. Much equipment refuses to handle it.

Three kinds of non-public addresses
Stays on this machine 127.0.0.0/8 loopback Never touches the network Used for local services and testing Stays on one link 169.254.0.0/16 link-local 255.255.255.255 broadcast Routers do not forward it Stays inside a network 10, 172.16-31 and 192.168 private 100.64/10 on provider networks Translated before reaching the internet Stays on this machine 127.0.0.0/8 loopback Never touches the network Used for local services and testing Stays on one link 169.254.0.0/16 link-local 255.255.255.255 broadcast Routers do not forward it Stays inside a network 10, 172.16-31 and 192.168 private 100.64/10 on provider networks Translated before reaching the internet

Smaller assignments you may notice

A few narrow blocks inside the larger ones have jobs of their own.

192.0.0.0/24 is set aside for IETF protocol assignments. Small pieces of it support particular transition and discovery mechanisms, and you might see one on a phone connected to an IPv6-only mobile network, where software gives older applications an IPv4 address to work with. That is expected behavior.

Within multicast, 224.0.0.0/24 is reserved for traffic that stays on the local link. Routing protocols use well-known addresses there, and 224.0.0.251 carries multicast DNS. 239.0.0.0/8 is administratively scoped multicast, meant for use inside an organization, much like private unicast space. 239.255.255.250 is the address devices use for the discovery protocol behind UPnP, so it appears often on home networks. See UPnP, convenience and risk.

192.88.99.0/24 was once used for an automatic IPv6 tunneling method called 6to4 relay anycast. That use has been deprecated, and you should not build anything on it.

Where the addresses show up

The same block means different things depending on where you read it.

Where you see it Example Likely explanation
Your adapter's address 169.254.31.8 No answer from DHCP
Router's internet status 100.72.4.19 Provider-side sharing
Web server access log 10.0.3.5 A proxy or load balancer in front
Traceroute middle hops 10.x or 192.168.x Routers numbered privately
Email headers 192.168.1.10 The sender's internal network
Listening ports list 127.0.0.1:3306 A service reachable only locally

Private addresses in a traceroute are common and harmless: operators often number internal links that way. Using traceroute explains how to read the rest of the path.

In server logs, a private source usually means you are recording the proxy instead of the visitor. The fix is to have the proxy pass the original address in a header and to configure the application to trust that header only from the proxy's own address. Trusting it from anyone lets a client claim to be whoever it likes.

Checking a whole list

If you have a file of addresses and want to know which are special, work from the most specific rules outward. Is it loopback or link-local? Is it in one of the three private blocks or the shared block? Documentation or benchmarking? Multicast or reserved? Anything left over is ordinary public space, though that does not mean anyone is actually using or announcing it.

Python's standard library can help with a first pass:

python3 -c "import ipaddress; a = ipaddress.ip_address('192.168.4.9'); print(a.is_private, a.is_loopback, a.is_link_local, a.is_multicast)"

Be aware that the library's idea of "private" is broader than RFC 1918 and has been adjusted between versions, so read its documentation and test the blocks that matter to you. For a single check against a block you choose, the IP range matcher is quicker.

What to do when one appears

Interpreting an unexpected address
Does it start with 127? YES Something is talking to the same machine. 1 NO Does it start with 169.254? YES Automatic configuration failed on that link. 2 NO Is it between 100.64 and 100.127? YES Provider sharing or an overlay VPN. 3 NO Is it a documentation block? YES An example value was left in a real setting. 4 NO Check private or public Compare it against the RFC 1918 ranges next. Does it start with 127? 1 IF YES Something is talking to the same machine. NO Does it start with 169.254? 2 IF YES Automatic configuration failed on that link. NO Is it between 100.64 and 100.127? 3 IF YES Provider sharing or an overlay VPN. NO Is it a documentation block? 4 IF YES An example value was left in a real setting. NO Check private or public Compare it against the RFC 1918 ranges next.

Using the list in firewall rules and code

Filters at the edge of a network often drop packets arriving from the internet that claim a source in these ranges, since no legitimate remote host should have one. This is called filtering bogons. Keep such lists current and apply them with care: blocking private sources on an internal interface will cut off your own users, and a provider that uses shared space on your link may need it to function.

Application developers have a related concern. A server that fetches URLs supplied by users should not be tricked into requesting its own loopback services, link-local metadata or internal private hosts. The defense is to resolve the name, check the resulting address against all the special ranges, in IPv6 as well as IPv4, and refuse anything internal, including after redirects. Well-maintained libraries are safer than a handwritten check.

IPv6 has its own list

The same ideas exist with different numbers: ::1 is loopback, fe80::/10 is link-local, fc00::/7 is unique local, ff00::/8 is multicast and 2001:db8::/32 is for documentation. See IPv6 address types.

Common questions

Can I use a documentation range on my own LAN?

It will appear to work, but it defeats the purpose and can confuse filters and colleagues. Use a private range.

Why is my server listening on 0.0.0.0?

It accepts connections on every IPv4 interface. If it should only serve the local machine, bind it to 127.0.0.1 instead and confirm your firewall rules.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in IP Addresses & Routing →

Latest news on this topic