IPv4 Explained: How the Internet’s Original Addresses Work

IPv4 explained in plain terms means the addressing system that gives every device on the internet a unique number so data can find its way. The central question is how billions of computers, phones, and routers exchange messages across a shared network without getting lost, and the short answer is that each one carries an IPv4 address, a 32-bit number written as four groups of digits, that works like a postal address for data.

Every time a page loads, a video streams, or an email arrives, IPv4 is quietly doing the routing. The sending device stamps each packet of data with the address of its destination, and routers along the way read that address and pass the packet closer to its target. Without those addresses, the network would have no way of knowing where anything should go.

IPv4 has been carrying internet traffic since the early days of the network, and it remains the most widely used version of the Internet Protocol today. It was designed when the internet was a small research network, so its pool of addresses is limited, yet clever workarounds have kept it running far beyond what its designers expected.

Key takeaways

  • IPv4 is the original Internet Protocol, giving each device a 32-bit address written as four numbers separated by dots.
  • An IPv4 address has a network part and a host part, and the split between them is set by the subnet mask.
  • Routers read the destination address on every packet and forward it hop by hop towards its target.
  • The address pool holds about 4.3 billion addresses, so the internet ran short and turned to sharing tricks such as NAT.
  • IPv6, with far longer addresses, is the long-term replacement, but IPv4 still carries most internet traffic today.

What IPv4 is

IPv4 stands for Internet Protocol version 4, and it is the fourth version of the protocol that defines how data travels across the internet. It sits at the heart of the network layer, the part of the system responsible for getting packets from one device to another, even when the two devices are on opposite sides of the world. Every device that connects directly to the internet needs an address under this system, just as every house needs a postal address to receive letters.

An IPv4 address is a 32-bit number, usually written in dotted decimal form as four numbers from 0 to 255, separated by full stops. A familiar example is 192.168.1.1, the address many home routers use, while public addresses such as 8.8.8.8 belong to services on the wider internet. Because the address is 32 bits long, the total pool is about 4.3 billion addresses, a huge number when the protocol was designed, but a finite one that the modern internet has now outgrown.

IPv4 does more than name devices. It also defines how packets are structured, how they are broken into smaller pieces when a network cannot carry them whole, and how routers decide the next step of a journey. Our guide to DNS explains how human-friendly domain names are translated into these numeric addresses, and our guide to IPv6 explains the newer protocol designed to replace IPv4 with a far larger address space.

How IPv4 works

When a device sends data, it splits the message into packets, and each packet carries a header with the source address and the destination address. The device first checks whether the destination is on its own local network, by comparing addresses using the subnet mask. If it is local, the packet goes straight to the destination; if it is not, the packet is sent to the default gateway, usually the router, which takes over the job of forwarding it.

Routers forward packets hop by hop, each one reading the destination address and consulting its routing table to choose the next router along the path. No single router knows the whole journey; each one only needs to know the best next step. The packets of a single message may even take different routes and arrive out of order, and the receiving device reassembles them into the original message.

The subnet mask is what divides an address into its network part and its host part. A mask such as 255.255.255.0 means the first three numbers identify the network and the last number identifies the individual device within it. Network administrators use this division to organise large networks into smaller subnets, which keeps traffic tidy and limits how far local messages spread.

Two supporting systems keep IPv4 usable in practice. DHCP automatically hands out addresses to devices as they join a network, so nobody has to configure each one by hand, and it reclaims addresses when devices leave. NAT, or network address translation, lets many devices on a private network share a single public address, which is the main reason the limited address pool has lasted as long as it has.

A laptop on a dark desk showing a network settings screen with an IP address, the address blurred, lit by a green glow
A laptop on a dark desk shows a network settings screen with an IP address, the address blurred and lit by a green glow, a reminder that every connected device carries a numeric address the network uses to find it.

Comparing IPv4 with IPv6

IPv6 is the successor to IPv4, built to solve the address shortage and to simplify several parts of the protocol. The two versions do similar jobs, but they differ in address size, header design, and how they handle configuration, and the two cannot talk to each other directly without a translator in between.

The table below sets out the main contrasts.

Aspect IPv4 IPv6
Address length 32 bits 128 bits
Total addresses About 4.3 billion Vast, far beyond foreseeable need
Address format Dotted decimal, such as 192.168.1.1 Hexadecimal groups separated by colons
Address assignment Usually DHCP, or manual setup Often automatic, built into the protocol
Packet header Variable length, with optional fields Fixed length and simpler to process
Packet fragmentation Routers may split packets in transit Only the sending device splits packets

The practical reality is that both protocols run side by side today. Most networks use IPv4 for everyday traffic and add IPv6 alongside it, a setup known as dual stack, and the transition will continue for years because so much equipment, software, and habit is built around IPv4.

Where IPv4 is used

Home networks are the most familiar place to meet IPv4. A home router typically hands out private addresses to phones, laptops, televisions, and smart devices, while presenting a single public address to the internet. This is NAT in action, and it is why a household can run dozens of connected devices while using only one public address from its internet provider.

Businesses and offices use IPv4 throughout their internal networks. Servers, printers, and workstations each carry an address, and subnets divide the office into groups, such as one for staff devices and another for guests. Firewalls and routers use those addresses to decide which traffic is allowed in, which stays inside, and which is blocked.

Data centres and cloud services depend on IPv4 for the public-facing side of the internet. Websites, email servers, and streaming services all publish IPv4 addresses so that any device can reach them, and load balancers spread incoming traffic across many servers behind a single public address. Even services that support IPv6 usually keep an IPv4 address available, because many visitors still connect that way.

IPv4 also runs the infrastructure most people never see. Internet providers assign public addresses to customers, mobile networks use IPv4 behind the scenes for phones, and the core routers of the internet forward IPv4 packets across continents. It is the common language that nearly every network still speaks, which is why it remains essential even as its replacement grows.

Strengths and limits

The greatest strength of IPv4 is its universality. Nearly every device, operating system, and network tool supports it, and decades of experience mean that engineers understand its behaviour deeply. It is simple to explain, easy to troubleshoot, and supported by a huge body of documentation, training, and diagnostic tools, which makes it the safe default for most networks.

It is also efficient in a practical sense. Its addresses are short and readable, its headers are compact, and its behaviour is predictable, which matters for small devices and busy routers that handle enormous volumes of traffic. For many everyday purposes, from a home network to a small office, IPv4 does everything that is needed without fuss.

The limits are dominated by one fact: the address pool is exhausted. New public addresses are scarce and costly, which forces networks to rely on sharing through NAT, and that sharing complicates direct connections between devices. IPv4 also lacks built-in security, leaving encryption and authentication to higher layers, and its header design carries features that modern networks rarely need.

IPv4 checklist

  • Check your device’s IPv4 address in its network settings before troubleshooting a connection.
  • Note whether the address is private, such as one starting with 192.168, or a public address.
  • Confirm the subnet mask, so you know which devices share your local network.
  • Check the default gateway address, since that is the router your traffic passes through first.
  • Restart the router and the device if an address looks wrong or starts with 169.254.
  • Remember that NAT hides your private address from the internet, so websites see your public address.
  • Use DHCP for everyday devices and reserve fixed addresses only for servers and printers.
  • Keep the router’s firmware updated, since it handles addressing for the whole network.
  • Ask your internet provider about IPv6 if you want an address of your own without sharing.

Frequently asked questions

What is IPv4 in simple terms?

IPv4 is the original system of numeric addresses that identifies devices on the internet, so data can be routed to the right destination. Each address is a 32-bit number written as four numbers from 0 to 255, separated by dots.

How many IPv4 addresses are there?

There are about 4.3 billion possible IPv4 addresses, because a 32-bit number has that many combinations. That once seemed enormous, but the growth of the internet has used up the supply of unallocated public addresses.

What is the difference between a public and a private IPv4 address?

A public address is reachable from anywhere on the internet, while a private address works only inside a local network, such as a home or office. Private addresses are reused in many networks, and NAT translates them to a public address for internet traffic.

What is NAT and why does it matter?

NAT, or network address translation, lets many devices on a private network share one public IPv4 address. It matters because it is the main technique that has kept IPv4 working despite the shortage of public addresses.

Will IPv4 disappear now that IPv6 exists?

Not soon. IPv6 is growing steadily, but IPv4 still carries a large share of internet traffic, and most networks run both together. The transition is gradual, and IPv4 is likely to remain in use for many years.

How do I find my IPv4 address?

On most devices, the network or Wi-Fi settings show the address assigned to the device, which is usually a private one. A website that reports your address shows the public address your internet provider presents to the internet.

The bottom line

IPv4 explained in one line is this: the original addressing system of the internet, giving every device a 32-bit numeric address so packets can be routed to the right place.

Its address pool is limited and its design dates from a smaller internet, yet it remains the common language of networks everywhere, kept alive by NAT, DHCP, and careful management. Understanding it is the foundation for understanding how the internet itself works.

This article is general information about how IPv4 works, not advice about configuring a network or choosing an addressing scheme for a particular organisation.

Latest articles

Scroll to Top