Networking

IPv4 vs IPv6

IPv4 vs IPv6: why 4.3 billion addresses ran out, how NAT kept IPv4 going, how to read and shorten IPv6 addresses, and what running both means for your code.

  • 8 min read
  • 5 questions
  • +35 XP
Transcript

IPv4 versus IPv6, explained by cats. Lots of kitties want internet addresses. Every kitty needs one to send meows online. IPv4 is the old address book. It only has about four billion addresses. At first it was plenty, but now there are way more kitties.

Kitty phones, kitty toys, all need addresses. IPv4 is running out. IPv6 is the new address book. It has 340 undecillion addresses. Enough for every kitty, every collar, every toy. IPv4 addresses consist of four segment of numbers. IPv6 addresses is a long number with hex and colons.

IPv6 also adds cool stuff like automatic configuration, built -in security, and better routing. Think of it like this. IPv4 is a small neighborhood of cat houses with few mailboxes. IPv6 is a giant city of cat skyscrapers with endless mailboxes.

Both send packets, both work online. But IPv6 gives every kitty a spot so no one shares or fights for an address. Let's adapt IPv6.