Fun with IP address parsing
blog.dave.tf
Fun with IP address parsing
1–10 of 150 posts
Re: Fun with IP address parsing
#2Wait, 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.
Re: Fun with IP address parsing
#4Re: Fun with IP address parsing
#5Re: Fun with IP address parsing
#6They wrote it into a blog that may be nicer to read https://blog.dave.tf/post/ip-addr-parsing/
Re: Fun with IP address parsing
#7https://www.rapidtables.com/convert/number/ascii-hex-bin-dec...
Re: Fun with IP address parsing
#8Re: Fun with IP address parsing
#9Nitpick: missed a single zero in the middle there.