Network security

IPv4 vs IPv6: Key Differences, Address Space and Which to Use

IPv4 ran out of addresses years ago, yet most networks still run it. Here is how IPv6 differs, where each one wins, and how to run both without breaking anything.

Cysoro Security TeamPublished · 9 min read
Network security IPv4 vs IPv6 32 bits or 128 bits? The address guide. CYSORO 192.0.2.33IPv4 - 32 bits2001:db8::1IPv6 - 128 bits
Quick answer

IPv4 uses 32-bit addresses, about 4.3 billion in total, and relies on NAT to share them. IPv6 uses 128-bit addresses, about 3.4 x 10^38, so every device can have its own public address. The two protocols cannot talk to each other directly, so most networks run both side by side in a dual-stack setup while IPv6 adoption keeps growing.

Key takeaways

  • IPv4 has about 4.3 billion addresses; IPv6 has about 3.4 x 10^38, so address exhaustion is an IPv4-only problem.
  • IPv6 drops NAT and router fragmentation, uses a fixed 40-byte header, and lets devices configure themselves with SLAAC.
  • The two protocols do not interoperate directly, so dual-stack is the safe migration path for almost every network.

Every device on the internet needs an address, and there are two kinds in use today. IPv4, from 1981, ran out of fresh addresses years ago. IPv6, its successor, has enough addresses for every device on Earth many times over — yet the internet still runs both.

What is the difference between IPv4 and IPv6?

IPv4 uses 32-bit addresses written as four decimal numbers, such as 192.0.2.33, giving about 4.3 billion addresses. IPv6 uses 128-bit addresses written as eight groups of hexadecimal digits, such as 2001:db8::8:800:200c:417a, giving about 3.4 x 10^38 addresses.

Both are versions of the Internet Protocol, the layer that addresses packets and routes them across networks. IPv4 is defined in RFC 791, published in 1981.

IPv6 is defined in RFC 8200, published in 2017, which replaced the original 1998 standard, as the IPv4 vs IPv6 guide from ProxyEmpire explains. The version numbers are just version numbers: version 5 went to an experimental protocol, so the successor to IPv4 became version 6.

The practical fact that matters most is that the two protocols cannot talk to each other directly. An IPv6-only device cannot open a connection to an IPv4-only server, and the reverse is also true, unless something in the middle translates. That is why the move to IPv6 has taken decades and why most networks run both.

IPv4 vs IPv6 comparison table

IPv6 wins on address space and simpler configuration, while IPv4 wins on universal support. This table covers the differences that change how you run a network.

FeatureIPv4IPv6
Address size32 bits, about 4.3 billion128 bits, about 3.4 x 10^38
NotationDotted decimal: 192.0.2.33Hex groups: 2001:db8::1
StandardRFC 791 (1981)RFC 8200 (2017)
Header size20 to 60 bytes, with checksumFixed 40 bytes, no checksum
FragmentationSender or any routerSender only
Address setupStatic or DHCPStatic, SLAAC or DHCPv6
Neighbor discoveryARPNeighbor Discovery over ICMPv6
BroadcastYesNo, multicast instead
NATUsed almost everywhereNot needed
DNS recordA recordAAAA record
Loopback127.0.0.1::1
Minimum MTU68 bytes1,280 bytes

Read the table as a design trade-off, not a scorecard. IPv6 removes workarounds that IPv4 accumulated over 40 years, but it asks every device, firewall and monitoring tool to understand a new address format.

How do IPv4 and IPv6 addresses look?

An IPv4 address is 32 bits split into four 8-bit parts written in decimal and separated by dots, giving exactly 4,294,967,296 addresses before reserved ranges are set aside. An IPv6 address is 128 bits written as eight groups of up to four hexadecimal digits separated by colons.

IPv6 has two shortcuts that keep addresses readable. Leading zeros in a group can be dropped, and one run of all-zero groups can be replaced by a double colon (::), which may appear only once per address. So 2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8::ff00:42:8329. RFC 5952 sets the canonical rules: lowercase letters, and the double colon on the longest run of zeros.

A single IPv6 subnet is normally a /64, meaning the first 64 bits identify the network and the last 64 bits identify the device. One /64 holds about 18.4 quintillion addresses, more than four billion times the entire IPv4 address space. Home and business sites are meant to receive many /64s at once, often a /48 or /56.

IPv4 vs IPv6 addresses at a glanceIPv4192.0.2.3332 bits, dotted decimal4,294,967,296 addressesRFC 791, 1981About 4.3 billionIPv62001:db8::ff00:42:8329128 bits, hex groupsAbout 3.4 x 10^38 addressesRFC 8200, 2017340 undecillionOne IPv6 /64 subnet holds more addresses than the whole IPv4 internet.
IPv4 gives about 4.3 billion addresses; IPv6 gives about 340 undecillion. Illustration by Cysoro.

IPv6 also defines address types you should recognise. Global unicast addresses are public and routable, currently assigned from 2000::/3. Link-local addresses in fe80::/10 work only on the local segment, and every IPv6 interface has one. Unique local addresses in fc00::/7 are the IPv6 equivalent of private ranges, and ::1 is loopback. IPv6 has no broadcast: multicast in ff00::/8 takes over that job.

Why did IPv4 run out of addresses?

IANA, which manages the global address pool, handed its last five unallocated /8 blocks to the five regional registries in February 2011, one each. After that, new IPv4 space mostly changed hands through transfers between organisations, and prices on that market rose.

IPv4 lasted this long because of network address translation (NAT). RFC 1918 set aside private ranges such as 10.0.0.0/8 and 192.168.0.0/16 that anyone can reuse inside their own network. A home router gives its devices private addresses and rewrites their traffic so it all leaves from one public address. Providers went further with carrier-grade NAT, sharing one public IPv4 address among many subscribers.

NAT saved IPv4, but at a cost. Devices behind it cannot easily accept incoming connections, peer-to-peer and gaming traffic needs workarounds, and one public address can stand for hundreds of people.

IPv6 removes the reason for NAT: there are enough addresses for every device to have a globally unique one. Networks still put a firewall in front of IPv6 devices, but they no longer need to hide many devices behind one address.

How do the IPv4 and IPv6 headers differ?

The IPv4 header is at least 20 bytes and can stretch to 60 bytes with options, and it carries a checksum that routers recompute at every hop. The IPv6 header is always exactly 40 bytes, has fewer fields, and drops the checksum entirely.

IPv6 is bigger only because its two addresses are four times longer. Its fields are version, traffic class, a 20-bit flow label, payload length, next header, hop limit, and the source and destination addresses. Anything optional goes into extension headers chained after the main header, which keeps the base header fixed and simpler for routers to process.

Fragmentation also changed. In IPv4, any router on the path can fragment a packet that is too large. In IPv6, only the sending host may fragment, and routers no longer fragment packets along the way. That simplifies routers, but it means path MTU discovery must work, and firewalls must handle fragmented IPv6 packets carefully.

How do devices get an IPv6 address?

IPv4 hosts get an address by static configuration or DHCP. IPv6 has three options: static configuration, SLAAC, or DHCPv6, and most networks use a mix of the first two.

SLAAC, stateless address autoconfiguration defined in RFC 4862, lets a device build its own address from a router advertisement and its interface identifier, with no server to manage. That is why a device can join an IPv6 network and be reachable within seconds. DHCPv6, defined in RFC 8415, adds central control, including handing out DNS server addresses and tracking assignments, which many business networks prefer.

One IPv6 device normally has several addresses at the same time: a link-local address, one or more global addresses, and often temporary addresses that change over time for privacy, as described in RFC 8981. That is normal, not a misconfiguration, and it is one reason IPv6 monitoring looks different from IPv4 monitoring.

Is IPv6 more secure than IPv4?

IPv6 is not automatically more secure, and treating it as safer is a common mistake. Neither protocol encrypts or authenticates traffic by default. RFC 8200 notes that IPv6 shares IPv4 threats such as eavesdropping, replay, insertion, deletion, modification, man-in-the-middle attacks and denial of service.

IPsec was built into the IPv6 design, and it can protect traffic at the network layer, but it is optional in practice, just as it is for IPv4. Real protection still comes from TLS for web traffic, IPsec or WireGuard for tunnels, and strong authentication.

A VPN, for example, protects you on either protocol, which is why our guide to the best VPN for privacy focuses on logging policy and audits rather than the IP version underneath.

IPv6 also changes the firewall picture. Because there is no NAT, every device can be directly reachable from the internet, so your firewall must block inbound connections by default, exactly as it would for a public IPv4 server.

ICMPv6 is essential plumbing for neighbor discovery and path MTU discovery, so blocking it wholesale breaks IPv6. And extension headers make filtering harder: a firewall must walk the whole header chain to find the transport header.

Do not ignore IPv6 on your firewallMany networks filter IPv4 carefully and leave IPv6 wide open, or leave it enabled by accident. Audit both protocols with the same rules, and check what your public address actually exposes with our what is my IP tool.

How widely is IPv6 adopted in 2026?

Google measured about 46% of its users reaching it over IPv6 on 28 September 2026, and more than half of Google users reached its services over IPv6 for the first time in March 2026. The other half still relies on IPv4, and many large websites still had no IPv6 address in late 2026.

Adoption varies sharply by country and provider. Mobile networks and large consumer ISPs lead, because they have the most devices per address and the most to gain from dropping carrier-grade NAT. Business networks, data centres and older enterprise equipment lag, often because firewalls, monitoring tools and legacy applications were built around IPv4 assumptions.

For a small business, the practical question is not whether to switch, but when to enable IPv6 alongside IPv4. If your ISP offers it, enabling dual-stack now gives you experience with IPv6 while IPv4 keeps everything working. Waiting until an IPv4-only service you need disappears is the expensive way to learn.

Dual-stack: running IPv4 and IPv6 togetherYour deviceIPv4 + IPv6 enabledRouterdual-stack, firewall onInternetIPv4 sites + IPv6 sitesIPv4 path: A recordWorks everywhere, uses NATIPv6 path: AAAA recordDirect address, no NATA site is reachable over IPv6 only if it publishes an AAAA record.
Dual-stack runs both protocols at once, so each connection uses whichever the destination supports. Illustration by Cysoro.

How do you move from IPv4 to IPv6?

Start with dual-stack, not a flag day. Enable IPv6 on your router and firewall, give the network a prefix from your provider, and let devices configure themselves with SLAAC while you keep IPv4 running. Test with a few hosts before rolling it out everywhere.

  1. Check your ISP. Ask whether it provides IPv6, what prefix size you get, and whether it is static or changes.
  2. Update the firewall first. Write IPv6 rules that mirror your IPv4 policy: block inbound by default, allow ICMPv6 for neighbor discovery, and log both protocols.
  3. Add AAAA records. Publish IPv6 addresses in DNS alongside your A records, so IPv6 clients can reach you. Check the records with our DNS lookup tool.
  4. Test from outside. Reach your services over IPv6 from another network, and confirm monitoring, logging and intrusion detection see IPv6 traffic.
  5. Plan for IPv4-only services. Use NAT64 or 464XLAT for IPv6-only segments that still need IPv4 sites, rather than disabling IPv6.

Common mistakes include enabling IPv6 on hosts but not on the firewall, publishing AAAA records before the firewall is ready, and blocking ICMPv6, which breaks neighbor discovery and path MTU discovery. The GigeNET guide for server admins covers the same pitfalls from an operations view. Each one is easy to avoid if you treat IPv6 as a second network to secure, not a feature to toggle on.

IPv4 vs IPv6: which should you use?

Use both. IPv4 remains essential because about half of internet traffic and many services are still IPv4-only, and IPv6 is essential because it is the only protocol with room to grow. A dual-stack network gives you both without forcing a choice.

For a home user, the answer is simple: leave both enabled and let your router and devices sort it out. For a business, the answer is a plan: dual-stack now, IPv6-first for new services, and firewall and monitoring rules that cover both protocols equally.

That is also the right foundation if you later add a firewall appliance; our guide to the best UTM firewall explains how to pick one that inspects both protocols.

If you only remember one thing, remember this: IPv6 is not a replacement you install on a weekend. It is a second protocol you run alongside IPv4 until the last IPv4-only service is gone, which will take years.

The bottom line

IPv4 gave the internet about 4.3 billion addresses and a NAT workaround that kept it alive long past exhaustion. IPv6 gives it about 340 undecillion addresses, a fixed 40-byte header, self-configuring hosts and no need for NAT — at the cost of running a second protocol alongside the first.

Run both, secure both, and measure both. Check what your connection actually exposes today with the free what is my IP tool, and make sure your firewall rules cover IPv6 as carefully as they cover IPv4.

Frequently asked questions

What is the main difference between IPv4 and IPv6?

The main difference is address size. IPv4 uses 32-bit addresses, about 4.3 billion in total, while IPv6 uses 128-bit addresses, about 3.4 x 10^38. That change drives most of the other differences: IPv6 needs no NAT, has a simpler fixed header, and lets devices configure their own addresses.

Is IPv6 faster than IPv4?

Not by itself. IPv6 removes NAT and router fragmentation, which can reduce overhead on some paths, but speed depends on routing, peering and the network in between. In practice, well-run IPv4 and IPv6 paths perform similarly, and a bad IPv6 route can be slower than IPv4.

Is IPv6 more secure than IPv4?

IPv6 is not automatically more secure. It was designed with IPsec support in mind, but neither protocol encrypts traffic by default. IPv6 removes NAT, so every device can be directly reachable, which means your firewall rules matter more, not less. Use IPsec or TLS for real protection.

Do I need IPv6 at home?

Most home users do not need to switch today, because dual-stack lets IPv4 keep working. Enabling IPv6 on your router gives your devices public addresses and avoids carrier-grade NAT limits for gaming and peer-to-peer apps. If your provider offers it, turning it on alongside IPv4 is low risk.

What happens if I disable IPv6?

Disabling IPv6 usually breaks nothing on a home network, because IPv4 still carries the traffic. On business networks and modern operating systems, though, some services expect IPv6 to work, including local discovery features. Microsoft and other vendors recommend leaving it enabled and filtering it properly instead.

How do I check if I have IPv6?

Visit a test site such as test-ipv6.com, or run a command that shows your addresses. On Windows use ipconfig, on macOS and Linux use ip addr or ifconfig. If you see an address starting with 2001: or another global prefix, you have IPv6 connectivity.

What is dual-stack?

Dual-stack means a device or network runs IPv4 and IPv6 at the same time. Each connection uses whichever protocol both ends support, usually preferring IPv6. It is the standard migration approach because the two protocols cannot talk to each other directly.

Will IPv4 ever go away?

Not soon. IPv4 still carries about half of internet traffic, and many sites and services are IPv4-only. IPv6 adoption grows every year, but IPv4 will remain in use for a long time, so networks should plan to run both rather than waiting for a switchover day.

Sources

  1. ProxyEmpire — IPv4 vs IPv6: Key Differences, Headers, Adoption and Proxies
  2. Safeguard — IPv4 and IPv6 Explained: Headers, Addressing and Security Differences
  3. GigeNET — IPv4 vs IPv6: key differences for server admins
  4. Linuxize — IPv4 vs IPv6: Differences Explained
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 791, RFC 8200, RFC 4291 and RFC 4862, plus Google IPv6 adoption figures reported in 2026.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free