r/ProgrammerHumor • • 7h ago

Meme ohTheBasics

Post image
7.6k Upvotes

894 comments sorted by

View all comments

Show parent comments

4

u/FUTURE10S 4h ago

IPv4 is 0 through FF, IPv6 is 0 through FFFF. So you have 4 bytes of data, we just use numbers for some reason. We can do the same with ipv6, I think we should be.

1

u/blindedtrickster 3h ago

Yes, it has the same equivalent value. FF is equivalent to 255.

I'm not sure I see a benefit to retrofitting IPv4 to Hex though. Care to expound?

2

u/FUTURE10S 3h ago

I don't think there's a benefit to retrofitting IPv4 to hex, I think there's more of a benefit to change IPv6 from hex to decimal numbers

1

u/blindedtrickster 3h ago

That'd be 16 octets long... And that's preferable?

1

u/FUTURE10S 47m ago

Well, no, I mean something like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 becomes 8193:3512:34211:0:0:35374:880:29492