255.255.0.0
- CIDR
- /16
- Usable hosts on a LAN
- 65,534
A subnet mask is a 32-bit number that marks which part of an IPv4 address identifies the network and which part identifies the device. The common mask 255.255.255.0 means the first three numbers name the network and the last number names the host, the same as /24 in CIDR notation.
Written in binary, a mask is a run of 1s followed by 0s. The 1s cover the network bits and the 0s cover the host bits. A device applies a bitwise AND between its address and the mask to get the network address: 192.168.1.37 AND 255.255.255.0 gives 192.168.1.0. Any destination with the same network address is reached directly; anything else goes to the default gateway.
CIDR notation counts the 1s instead of spelling the mask out, so 255.255.255.0 is /24 and 255.255.0.0 is /16. On a local network the first address (network) and the last (broadcast) are reserved, which is why the usable host count is two less than the block size.
255.255.0.0255.255.255.0255.255.255.128255.255.255.192255.255.255.248255.255.255.252Python's standard ipaddress module does the arithmetic for you, which helps when you write allowlists or check whether an address falls inside a range:
import ipaddress
net = ipaddress.ip_interface("192.168.1.37/255.255.255.0").network
print(net) # 192.168.1.0/24
print(net.netmask) # 255.255.255.0
print(net.num_addresses) # 256
print(ipaddress.ip_address("192.168.1.200") in net) # True
print(ipaddress.ip_address("192.168.2.10") in net) # FalseWebsites and firewalls think in ranges as much as single addresses, and ranges are written with masks or CIDR prefixes.
CleanProxies ISP subnet proxies are whole dedicated /24 blocks of US carrier IPs, from $1.19 per IP, so no neighbour shares your range.
/24 when several addresses in it misbehave, so neighbours on a shared range affect you.203.0.113.0/24 instead of 256 lines.255.255.255.255 (/32) means exactly one address, which is how single IPs are written in most allowlist fields.The CleanProxies proxy that fits best here, with a $4.99 trial to test it first.
Whole dedicated /24 blocks of US carrier IPs with unlimited bandwidth.
Whole /24 blocks of static ISP IPs (255, 510 or 1,020 addresses) reserved for one customer, for large fleets of long-lived sessions.
Setup guides and best practices from the CleanProxies blog.
Terms that come up alongside Subnet mask.
Straight answers about Subnet mask.
The first three numbers of the address identify the network and the last number identifies the device. It equals /24 in CIDR and gives 256 addresses, 254 of them usable hosts on a local network.