Skip to content
ipaddress.si

IPv4, explained

Thirty-two bits that still carry most of the internet's traffic — how they're written, divided, shared and reserved.

Look up an IPv4 address

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.

192
11000000
168
10101000
1
00000001
42
00101010
Network bits: 24Host bits: 8
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.

BlockPurposeReferenceGlobally reachable
0.0.0.0/8This networkRFC 791No
10.0.0.0/8Private-UseRFC 1918No
100.64.0.0/10Shared Address Space (CGNAT)RFC 6598No
127.0.0.0/8LoopbackRFC 1122No
169.254.0.0/16Link-LocalRFC 3927No
172.16.0.0/12Private-UseRFC 1918No
192.0.0.0/24IETF Protocol AssignmentsRFC 6890No
192.0.2.0/24Documentation (TEST-NET-1)RFC 5737No
192.31.196.0/24AS112-v4RFC 7535Yes
192.52.193.0/24AMTRFC 7450Yes
192.88.99.0/24Deprecated 6to4 Relay AnycastRFC 7526No
192.168.0.0/16Private-UseRFC 1918No
192.175.48.0/24Direct Delegation AS112 ServiceRFC 7534Yes
198.18.0.0/15BenchmarkingRFC 2544No
198.51.100.0/24Documentation (TEST-NET-2)RFC 5737No
203.0.113.0/24Documentation (TEST-NET-3)RFC 5737No
224.0.0.0/4MulticastRFC 5771No
240.0.0.0/4Reserved for future useRFC 1112No
255.255.255.255/32Limited BroadcastRFC 919No

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.