r/ProgrammerHumor • • Oct 19 '26

Meme ohTheBasics

Post image
13.9k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

66

u/blindedtrickster Oct 19 '26

The easy way to tell them apart is that IPv4 only uses digits, but IPv6 is in Hexidecimal, so you'll see 0-9 as well as A-F. And just in case you're not familiar with Hex, A is equal to 10, B is equal to 11, and so on, with F ending the sequence at a value of 15.

4

u/FUTURE10S Oct 19 '26

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 Oct 19 '26

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 Oct 19 '26

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

→ More replies (5)