Class B IP Address Range
Class B covers all IPv4 addresses from 128.0.0.0 to 191.255.255.255, which means every address whose first number is between 128 and 191. Medium-sized networks. The private 172.16.x.x – 172.31.x.x part is used by offices, Docker and iPhone hotspots.
Class B at a glance
| Address range | 128.0.0.0 – 191.255.255.255 |
|---|---|
| First number | 128 – 191 |
| First bits | 10 |
| Default subnet mask | 255.255.0.0 (/16) |
| Number of networks | 16,384 |
| Hosts per network | 65,534 |
| Private range | 172.16.0.0 – 172.31.255.255 (172.16.0.0/12) |
| Used for | Medium-sized networks. The private 172.16.x.x – 172.31.x.x part is used by offices, Docker and iPhone hotspots. |
Private IP range in Class B
The private part of Class B is 172.16.0.0 – 172.31.255.255 (172.16.0.0/12), with 1,048,576 addresses. These addresses are used inside local networks and are not routed on the internet.
Common router IPs in Class B
Router and modem makers often use these addresses as the default gateway. Open one to see the login steps:
Browse 172.16.x.x by range
Each range below lists 1,024 addresses with a link to its login page.
Special addresses in Class B
169.254.0.0/16– Link-local (APIPA). A device gives itself one of these when it gets no address from the router (DHCP).172.17.0.0/16– Default network of Docker containers.172.20.10.0/28– Network used by iPhone Personal Hotspot (gateway 172.20.10.1).