You don't have javascript enabled. Please enable javascript to use this website.

What Is IPv4?

IPv4 (Internet Protocol version 4) is the 32-bit network layer protocol defined in RFC 791 (September 1981) that assigns a unique numerical address to every device on an IP network. Written in dotted-decimal notation — four octets ranging from 0 to 255, separated by periods — an IPv4 address identifies both the host device and the network it belongs to, enabling routers to forward data packets between them. IPv4 supports approximately 4.29 billion unique addresses (2³²). IANA confirmed global address pool exhaustion on 3 February 2011, driving the widespread adoption of NAT and the transition to IPv6.

How IPv4 Addressing Works

IPv4 defines an address as a 32-bit binary number, which allows for exactly 2³² — 4,294,967,296 — unique combinations. To make these addresses human-readable, the 32 bits are divided into four groups of 8 bits each, called octets. Each octet is expressed as a decimal number between 0 and 255, and the four octets are separated by periods. This format — dotted-decimal notation — produces addresses such as 93.184.216.34 or 203.0.113.45.

Diagram of the IPv4 address 203.0.113.45: four 8-bit octets in decimal and binary, with the /24 network part and the host part
An IPv4 address is 32 bits in four octets; with a /24 mask the first three octets are the network and the last one the host.

Every IPv4 address serves two functions simultaneously. The network portion identifies which network a device belongs to; the host portion identifies the specific device within that network. The boundary between the two is determined by a subnet mask — a second 32-bit number applied through a bitwise AND operation. A subnet mask of 255.255.255.0 (written as /24 in CIDR notation) places the network identifier in the first 24 bits and reserves the remaining 8 bits for host identification, supporting up to 254 usable host addresses on that segment (256 minus the network address and broadcast address).

IPv4 is a connectionless, best-effort delivery protocol as defined in RFC 791. It does not guarantee that packets will arrive, arrive in order, or arrive without duplication. Reliability, ordering, and flow control are handled by higher-layer protocols — most commonly TCP, which operates above IPv4 in the TCP/IP stack. This separation allows IPv4 to remain lightweight and fast, responsible only for addressing and routing.

Network and Host Portions

Routers use the network portion of a destination address to select a forwarding path. When a packet arrives, the router performs a longest-prefix match against its routing table — a list of known network prefixes paired with next-hop addresses or outbound interfaces. The packet is forwarded one hop closer to the destination network; the final-hop router then uses the host portion to deliver it to the specific device. This routing mechanism has remained fundamentally unchanged since RFC 791 was published in 1981.

CIDR Notation and the End of Classful Addressing

IPv4 originally allocated addresses using a classful system in which the first octet determined a fixed block size — Class A, B, or C. This was inefficient: an organization needing 1,000 hosts would receive a Class B block of 65,536 addresses, leaving 64,536 unused. In 1993, RFC 1519 introduced Classless Inter-Domain Routing (CIDR), which allows any prefix length to be defined using slash notation (e.g., /22 or /27). CIDR enables precise address allocation, reduces routing table size through prefix aggregation, and extended IPv4's useful life by years. The complete class system reference is in the table below.

IPv4 Exhaustion and NAT

With 4.29 billion addresses and a rapidly growing internet, exhaustion was mathematically certain. IANA exhausted its central pool of unallocated IPv4 blocks on 3 February 2011, distributing the last five blocks equally among the five Regional Internet Registries (RIRs): ARIN (Americas), RIPE NCC (Europe, Middle East, and Central Asia), APNIC (Asia-Pacific), LACNIC (Latin America and Caribbean), and AFRINIC (Africa). Regional pools then depleted sequentially — APNIC in April 2011, RIPE NCC in September 2012, LACNIC in June 2014, and ARIN in September 2015.

Network Address Translation (NAT), standardized in RFC 3022, became the primary mechanism that extended IPv4 beyond its theoretical capacity. A NAT-enabled router assigns private IPv4 addresses to devices on a local network, then rewrites packet headers so all outbound traffic appears to originate from a single public IPv4 address. This allows hundreds of devices to share one public address, at the cost of stateful complexity: NAT devices must track every active connection, and peer-to-peer protocols that assume end-to-end addressability require workarounds such as STUN or TURN. IPv6 was designed to eliminate NAT entirely by providing an address space large enough that every device receives a globally unique, publicly routable address.

Diagram of NAT: a laptop, a phone and a TV with private IPs 192.168.1.10 to .12 share one public IPv4 address, 203.0.113.45
NAT lets every device on a private network share one public IPv4 address. (Documentation and private addresses.)

For a detailed breakdown of private address ranges and how NAT interacts with RFC 1918 blocks, see Public IP vs Private IP.

IPv4 vs IPv6

IPv4 and IPv6 coexist on most modern networks through dual-stack deployment, where a device or server holds addresses under both protocols and traffic flows over whichever the endpoint supports. IPv6, standardized in RFC 2460 (1998) and updated by RFC 8200 (2017), uses 128-bit addresses expressed in eight colon-separated groups of hexadecimal digits — for example, 2001:0db8:85a3::8a2e:0370:7334. Its 340 undecillion-address space (2¹²⁸) eliminates the need for NAT. For a complete explanation of IPv6 address types, compression rules, and dual-stack deployment, see What Is IPv6?.

Feature IPv4 IPv6
Address length 32 bits 128 bits
Notation Dotted-decimal — e.g. 192.0.2.1 Colon-hexadecimal — e.g. 2001:db8::1
Total addresses ~4.29 billion (2³²) 340 undecillion (2¹²⁸)
NAT required Yes — address exhaustion forced NAT No — every device gets a public address
Defining RFC RFC 791 (September 1981) RFC 8200 (July 2017)

IPv4 Address Class Reference

The five IPv4 address classes are identified by the leading bits of the first octet, as defined in RFC 791 (Classes A–C) and RFC 1112 (Classes D–E). Classes A, B, and C serve unicast addressing. Class D is reserved for IP multicast. Class E is reserved for IETF experimental use and is not routed on the public internet. The 127.0.0.0/8 block (loopback, per RFC 1122) is excluded from Class A's usable host space.

Class First Octet RFC Default Subnet Mask Usable Hosts per Network
A 1–126 RFC 791 /8 — 255.0.0.0 16,777,214
B 128–191 RFC 791 /16 — 255.255.0.0 65,534
C 192–223 RFC 791 /24 — 255.255.255.0 254
D 224–239 RFC 1112 Multicast — no subnet mask Group addressing only
E 240–255 RFC 1112 Reserved — not publicly routed IETF experimental use

How to Find Your IPv4 Address

Find your private (local) or public IPv4 address using built-in platform commands — no additional software required.

1

Open a terminal or command-line tool

On Windows, press Win + R, type cmd, and press Enter. On macOS or Linux, open the Terminal application from your applications or dock.
2

Run the platform command for your OS

Windows: run ipconfig and find "IPv4 Address" under your active network adapter. macOS or Linux: run ip addr or ifconfig and look for "inet" next to your active interface name.
3

On iOS or Android, use network settings

iOS: Settings → Wi-Fi → tap your connected network → IP Address. Android: Settings → Wi-Fi → long-press your network → Manage network settings → show advanced options → IP address.
4

Check your public IPv4 at WhatIsMyIPNow

Your device shows its private (local) IPv4 assigned by your router. To see your public IPv4 — the address the internet sees — use the IP Geolocation Lookup tool on WhatIsMyIPNow.

Frequently Asked Questions

What does IPv4 stand for?
IPv4 stands for Internet Protocol version 4. It is the fourth iteration of the Internet Protocol, first formally defined in RFC 791, published by the IETF in September 1981. The "v4" designation distinguishes it from earlier experimental versions (RFC 760) and its successor, IPv6, which is defined in RFC 2460 (1998) and updated by RFC 8200 (2017).
What is the difference between IPv4 and IPv6?
IPv4 uses a 32-bit address expressed in dotted-decimal notation (e.g. 192.0.2.1), supporting approximately 4.29 billion unique addresses. IPv6 uses a 128-bit address in colon-hexadecimal notation (e.g. 2001:db8::1), providing 340 undecillion addresses — eliminating the need for NAT. IPv6 also includes built-in IPsec support and simplified packet headers, though most global internet traffic still runs over IPv4 as of 2026.
When did IPv4 addresses run out?
IANA exhausted its central IPv4 pool on 3 February 2011. Regional registries then depleted their own reserves sequentially: APNIC (Asia-Pacific) in April 2011, RIPE NCC (Europe, Middle East) in September 2012, LACNIC (Latin America) in June 2014, and ARIN (Americas) in September 2015. AFRINIC (Africa) holds limited remaining reserves. The response has been widespread NAT deployment and gradual IPv6 adoption.
How do I find my IPv4 address?
On Windows, open Command Prompt and run ipconfig — your private IPv4 appears under your active adapter. On macOS or Linux, run ifconfig or ip addr in Terminal and look for "inet". On mobile, check Settings → Wi-Fi → your network name → IP address. Your public IPv4 — the address visible to the internet — is shown at the top of whatismyipnow.com automatically.
Why does my device show a private IP address, not a public one?
Devices on home and office networks receive a private IPv4 address from their router via DHCP. The router uses NAT (Network Address Translation, RFC 3022) to share a single public IPv4 address with all devices on the local network. Your private address (e.g. 192.168.1.x or 10.0.0.x) is only reachable within your local network. Your public IPv4 is what external servers and websites see, and it is shown automatically when you visit whatismyipnow.com.
What is the difference between classful and CIDR addressing?
Classful addressing, defined in RFC 791, divided IPv4 into five fixed classes (A through E) based on the leading bits of the first octet — producing rigid network sizes that wasted large blocks of addresses. CIDR (Classless Inter-Domain Routing), introduced in RFC 1519 (1993), replaced fixed classes with variable-length prefix notation (e.g. /22, /27), allowing precise address allocation and significantly smaller routing tables.
Does WhatIsMyIPNow store or log the IP addresses I check?
No. WhatIsMyIPNow does not store or log any IP addresses entered into its tools. All queries are processed in real time and no personally identifiable data is retained after your session ends. For full details, see the site privacy policy.
Is IPv4 still used today?
Yes. Despite growing IPv6 adoption, IPv4 still carries the majority of global internet traffic as of 2026. Most ISPs, cloud platforms, and enterprise networks operate dual-stack configurations — supporting both protocols simultaneously. IPv4 is expected to remain in widespread use alongside IPv6 for many years, primarily because the installed base of IPv4-only hardware and software is enormous and costly to replace.