What an IPv4 address is
An IPv4 address is a 32-bit number that identifies a network interface. Humans write it in dotted-decimal notation: four numbers from 0 to 255, each representing 8 bits (an octet). 192.0.2.10 is really 11000000 00000000 00000010 00001010.
32 bits allow about 4.3 billion addresses (2³²). That sounded like plenty in 1981, when RFC 791 defined the protocol. It is not enough for today’s billions of phones, computers and servers — which is why IPv6 exists and why most IPv4 networks now share addresses.
Public and private addresses
A public address is globally unique and routed on the internet. Your home router or your mobile carrier has one; websites are reached through them.
Private addresses (RFC 1918) can be reused inside any network and are never routed on the public internet:
| Range | CIDR | Addresses |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16,777,216 |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1,048,576 |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 |
Devices with private addresses reach the internet through NAT (network address translation): the router rewrites outgoing packets so they carry its public address. That’s why the address this site shows you is usually your router’s, not your laptop’s.
CGNAT and 100.64.0.0/10
Many ISPs, especially mobile networks, add a second layer of NAT — carrier-grade NAT. Your router then gets an address from the shared range 100.64.0.0/10 (RFC 6598), and hundreds of customers share one public IPv4 address. If the WAN address in your router differs from the one shown here, you are probably behind CGNAT.
CIDR notation and subnets
Classless Inter-Domain Routing (CIDR, RFC 4632) writes a block of addresses as address/prefix-length. The prefix length says how many leading bits are fixed — the network part; the rest is the host part.
/24→ 8 host bits → 256 addresses (e.g.192.168.1.0 – 192.168.1.255)/16→ 16 host bits → 65,536 addresses/32→ a single address
In a traditional subnet the first address is the network address and the last is the broadcast address, so a /24 has 254 usable hosts. Point-to-point links can use a /31 with both addresses usable (RFC 3021).
Before CIDR, addresses were handed out in fixed classes — A (/8), B (/16) and C (/24). The classes wasted space and were abandoned in 1993, but you’ll still hear the terms.
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.255
- Usable hosts
- 254
- Scope
- PrivatePrivate-Use
Special-use addresses
Some blocks are reserved by IANA for specific purposes and never assigned to customers. The table below is generated from the IANA special-purpose address registry that this site uses to classify every lookup.
| Block | Purpose | Reference | Globally reachable |
|---|---|---|---|
| 0.0.0.0/8 | This network | RFC 791 | No |
| 10.0.0.0/8 | Private-Use | RFC 1918 | No |
| 100.64.0.0/10 | Shared Address Space (CGNAT) | RFC 6598 | No |
| 127.0.0.0/8 | Loopback | RFC 1122 | No |
| 169.254.0.0/16 | Link-Local | RFC 3927 | No |
| 172.16.0.0/12 | Private-Use | RFC 1918 | No |
| 192.0.0.0/24 | IETF Protocol Assignments | RFC 6890 | No |
| 192.0.2.0/24 | Documentation (TEST-NET-1) | RFC 5737 | No |
| 192.31.196.0/24 | AS112-v4 | RFC 7535 | Yes |
| 192.52.193.0/24 | AMT | RFC 7450 | Yes |
| 192.88.99.0/24 | Deprecated 6to4 Relay Anycast | RFC 7526 | No |
| 192.168.0.0/16 | Private-Use | RFC 1918 | No |
| 192.175.48.0/24 | Direct Delegation AS112 Service | RFC 7534 | Yes |
| 198.18.0.0/15 | Benchmarking | RFC 2544 | No |
| 198.51.100.0/24 | Documentation (TEST-NET-2) | RFC 5737 | No |
| 203.0.113.0/24 | Documentation (TEST-NET-3) | RFC 5737 | No |
| 224.0.0.0/4 | Multicast | RFC 5771 | No |
| 240.0.0.0/4 | Reserved for future use | RFC 1112 | No |
| 255.255.255.255/32 | Limited Broadcast | RFC 919 | No |
Why IPv4 ran out
IANA handed the last free /8 blocks to the five regional internet registries in February 2011. The RIRs then ran out one by one — APNIC in 2011, RIPE NCC in 2019 for regular allocations. Today, new IPv4 space comes from transfers on a secondary market, where a single address sells for tens of dollars.
The industry’s answer has three parts: NAT to share addresses, CGNAT at providers, and IPv6, whose address space makes sharing unnecessary.
Frequently asked questions
- How many IPv4 addresses are there?
- 2³² = 4,294,967,296. About 3.7 billion are usable on the public internet; the rest are reserved for private networks, multicast and other special purposes.
- Is 192.168.1.1 a public IP address?
- No. 192.168.0.0/16 is a private range (RFC 1918). 192.168.1.1 is a common default address for home routers' admin pages.
- Why does my IP address change?
- Most ISPs assign public addresses dynamically from a pool. Your address can change when the router reconnects or a lease expires. Static addresses are usually a paid option.
- Can two devices have the same IPv4 address?
- Not on the same network. Private addresses are reused across different networks, and NAT lets many devices share one public address.