Hacker News new | ask | show | jobs
by drug5 1373 days ago
Interesting. How is this encoded?
3 comments

It's just the bits of the ip number interpreted as one 32-bit integer instead of four 8-bit integers.
It's a decimal encoding of 0x01000001 - 1.0.0.1
Its A.B.C.D with A255^3 + B255^2 + C255^1 + D255^0.
Almost. Replace all 255 with 256 in the formula.