Type an IPv4 address with a prefix such as /24 to get the network, mask, broadcast, first and last usable address and address count, and check whether an IP is in range.
Such as Cloudflare, which publishes its addresses in CIDR for allow-lists.
Example: allow only your office
If your office ISP gives you a range like 203.0.113.0/29, add it to the server firewall allow-list for SSH or phpMyAdmin, so access from outside the office is refused. The calculator shows the eight addresses that range covers.
Key terms
Short definitions of what you meet along the way.
CIDR
Writing a network as an address and prefix such as 10.0.0.0/8.
Netmask
Defines which part of the address is the network and which the hosts.
Private ranges
The 10/8, 172.16/12 and 192.168/16 ranges for internal networks only.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy