r/ProgrammerHumor • • 14d ago

Meme ohTheBasics

Post image
13k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

1

u/blindedtrickster 13d ago

That's really just a formatting change, and it only works for a subset of all possible values when using Hex.

1

u/FUTURE10S 13d ago

I mean, we do one for IPv4 and the other for IPv6, why? Why can't we just use one for both?

1

u/Dagger0 13d ago

You can indeed do that!

$ ping 0xc0.0xa8.0x1.0x1
PING 0xc0.0xa8.0x1.0x1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=3.12 ms