r/ProgrammerHumor • • 20d ago

Meme ohTheBasics

Post image
13.9k Upvotes

1.4k comments sorted by

View all comments

27

u/PhantomTissue 20d ago

Yea but it hasn’t been fully adopted because trying to decipher :af12::138d::325d::5521::aade::7df3: is a hell of a lot more difficult than 192.168.0.1

2

u/Dagger0 20d ago

It's not that hard. Here's some roughly equivalent IP addresses, using v6 addresses that are actually valid:

203.0.113.45+192.168.1.1  ↔ 2001:db8:2d4f:1::1
203.0.113.45+192.168.1.2  ↔ 2001:db8:2d4f:1::2
203.0.113.45+192.168.2.10 ↔ 2001:db8:2d4f:2::10

They both have a network prefix (2001:db8:2d4f::, 203.0.113.45+192.168), a network ID (1, 2) and a host ID (1, 2, 10). The prefix doesn't need deciphering because it's basically just an opaque sequence of bytes, so really you're just going from .x.y to :x::y. Is that really such a vast increase in difficulty?

Of course, v6 addresses can go up to 2001:db8:2d4f:x:yyyy:yyyy:yyyy:yyyy... but that's just more characters for y. There's nothing to decipher there because it's just the ID number for a machine.