IP in CIDR range checker
Check whether an IPv4 or IPv6 address is inside one or more CIDR ranges, and whether it is private, loopback, link-local, CGNAT, documentation or public.
IPv4 or IPv6.
CIDR blocks, one per line or separated by commas.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the IP in CIDR range checker
- Enter one IPv4 or IPv6 address.
- Read its type and the special-purpose block it belongs to, if any.
- Optionally add CIDR ranges, one per line, to test the address against each.
- Read which ranges contain the address.
About this tool
Two questions come up whenever an IP address appears in a log, a rule or a request. Is it inside this range? And what kind of address is it? The first decides whether a firewall rule, an allow list or a route applies. The second tells you where the traffic can have come from: the internet, your own network, or the machine itself.
IANA keeps registries of special-purpose blocks. 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private. 127.0.0.0/8 is loopback. 169.254.0.0/16 is link-local, and holds the metadata service of most clouds at 169.254.169.254. 100.64.0.0/10 is shared space for carrier-grade NAT, which is not private space you control. IPv6 has its own: ::1, fe80::/10, fc00::/7 and more.
This matters most for server-side request forgery. A service that fetches URLs for users must refuse addresses that are loopback, private or link-local, in every written form, or it can be turned against its own network. Use the checker to confirm how an address is classed, and to test the ranges of an allow list or a block list before you rely on it.
Sources
Questions
In IPv4, the three blocks of RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. In IPv6, the unique local range fc00::/7. They are not routed on the internet and can be reused inside any network.
No. The private block 172.16.0.0/12 runs from 172.16.0.0 to 172.31.255.255. 172.32.0.1 is a public address. Mistaking all of 172.x for private is a common error in allow lists.
It is shared address space for carrier-grade NAT (RFC 6598), used by internet providers between their network and their customers. It is not globally routable, but it is not yours either: other customers of the same provider may sit in it.
It is the link-local address where cloud providers serve instance metadata, which can include temporary credentials. If an attacker can make your server request that address, through an SSRF flaw, they may obtain those credentials. Block link-local ranges in anything that fetches URLs.