Why do we still use IPv4?

A short reminder about IPv4 and IPv6, as well as some remarks on why IPv4 is still relevant today

Preamble

Everybody knows that the Internet is built on the TCP/IP protocol suite which includes protocols such as TCP, UDP, ICMP, IP. Other related protocols, such as ARP, also help devices communicate across IP networks.

The IP protocol handles logical addressing and routes data packets across the Internet (and other IP-based networks in general).

IPv4 was prepared for DARPA by USC/ISI in 1981 and became a standard for the modern Internet. IPv4 was a separate specification. Previous versions, such as TCP/IPv3 and earlier, were experimental and combined with TCP. Thus, IPv4 was the first standardized version of IP designed as a distinct protocol.

To answer the question of why it is called IPv6 rather than IPv5, version 5 was reserved for the experimental Internet Stream Protocol. By the time the new version of the IP protocol was under discussion, version 5 had already been taken. So, the new protocol became version 6.

So, what was the issue with IPv4, and what does IPv6 solve?

IPv4

The usual IPv4 address is a tuple of four numbers in the range [0,255][0, 255]: x.y.z.w. Thus, simple arithmetic shows that 232=42949672962^{32} = 4 294 967 296 IPv4 addresses are theoretically available. In fact, fewer are available because some addresses are reserved for different purposes. For example, the 192.168.0.0/16 range includes addresses from 192.168.0.0 to 192.168.255.255. You can find more examples in the table of reserved IP addresses. Given that there were approximately 21 billion IoT devices in 2025 (see here), how is it possible to connect them to the Internet with only 4 billion IP addresses?

It may therefore be surprising to learn that some IPv4 address blocks are still available, for example, through AFRINIC and APNIC (registries for Africa and the Asia-Pacific region). For example, the available IPv4 blocks at AFRINIC can be viewed with this simple command:

$ curl -fsSL https://ftp.afrinic.net/stats/afrinic/delegated-afrinic-extended-latest |
  awk -F'|' '$3 == "ipv4" && $7 == "available" {print $4, $5}'

However, there are no available IPv4 addresses left in Europe or the Americas.

The shortage of IPv4 addresses was recognized as early as the 1990s, so the first IPv6 specification was published in 1995. Today, in 2026, we are still using IPv4, although IPv6 is widely deployed. Incidentally, IPv6 provides around 2128≈3.4×10382^{128} \approx 3.4\times 10^{38} different IP addresses.

The issue with IPv6 is that it is not compatible with IPv4. So, even if your provider supports IPv6 and all your devices are up to date, you still need an IPv4 address to connect to an IPv4 server, and vice versa. To connect an IPv4 network to an IPv6 network, we need techniques such as proxies, gateways, translation, and tunneling.

IPv4-IPv6

Therefore, network vendors support both protocols (an approach called dual stack), and this situation will remain for a while.

NAT

One major reason we are still using IPv4 is NAT (Network Address Translation). This technique helps share one IP address among many participants. It enables your home router to connect several devices in your household to servers on the Internet using a single public IPv4 address.

For example, a notebook with the address 192.168.1.10 visits a website.

Notebook: 192.168.1.10:50000 --> website:443

The router replaces the notebook’s private IP address with its own public address at the IP layer. It also changes the port at the transport layer (TCP/UDP) to a port assigned to this notebook.

192.168.1.10:50000 <--> public IP: 41002
Router: public_IP:41002 --> website:443

The website sees the router’s public IP address with port 41002 and sends data there:

Website: website:443 --> public_IP:41002
Router: public_IP:41002 --> 192.168.1.10:50000

When a smartphone wants to access the Internet, the router assigns it another port (say, 41003).

More precisely, this is Network Address and Port Translation (NAPT), often called PAT. It translates both the source IP address and the TCP or UDP port, although it is commonly referred to simply as NAT.

A similar technique can be used by Internet providers, allowing several users to share one IPv4 address. This is called CGNAT (carrier-grade NAT). This technique is similar but more resource-intensive because it needs to maintain larger connection tables and therefore requires more computational capacity.

How can you check whether your provider is using CGNAT? Check the external IPv4 address on your router’s WAN interface and compare it with the IPv4 address shown by a website such as myip.com. If they are the same, you have a separate IP address which though should not stay same as your provider may change them dynamically. If the WAN address is in the range 100.64.0.0–100.127.255.255, this is a sign that CGNAT is being used.

IPv6

As mentioned above, IPv6 solves the address shortage. There are now plenty of addresses, and each router typically receives not one IP address but a prefix, allowing every device behind the router to have its own IP address. The size of the prefix determines the number of possible subnetworks. Each subnetwork may accommodate theoretically up to 2642^{64} devices which practically is hardly reachable of course. The vendors support some reasonable upper bound.

Given prefixHow many /64 sub-networks
/641
/6016
/56256
/4865 536

More about IPv6 will follow later. Stay tuned.