Live data from Hacker News

Fun with IP address parsing

blog.dave.tf

1–10 of 150 posts

Re: Fun with IP address parsing

#2
> 1:2:3:4:5:6:77.77.88.88 means 1:2:3:4:5:6:7777:8888

Wait, what? 77.77.88.88 is in dotted decimal. It doesn't correspond to 7777:8888 in hex.

edit: Somebody else already noticed on Twitter:

> And as @alanjmcf noticed, I messed up one of the representations above.

> 1:2:3:4:5:6:77.77.88.88 means 1:2:3:4:5:6:4d4d:5858, not 1:2:3:4:5:6:7777:8888. I missed out a decimal-to-hex conversion in there.

Re: Fun with IP address parsing

#3

> 1:2:3:4:5:6:77.77.88.88 means 1:2:3:4:5:6:7777:8888 Wait, what? 77.77.88.88 is in dotted decimal. It doesn't correspond to 7777:8888 in hex. edit: Somebody else already noticed on Twitter: > And as @alanjmcf noticed, I messed up one of the representations above. > 1:2:3:4:5:6:77.77.88.88 means 1:2:3:4:5:6:4d4d:5858, not 1:2:3:4:5:6:7777:8888. I missed out a decimal-to-hex conversion in there.

[deleted]
Post reply on HN