News for hackers. Stuff that matters.
Re:IP address can be written 121 ways by TheLoneAdmin on Monday March 04, 2019 @09:50AM (#19301669)
The list lists four different ways: dotted, decimal, hex and octal. The other 117 entries are just combinations of the four.
Re:IP address can be written 121 ways by aboutruby on Monday March 04, 2019 @09:54AM (#19301698)
Also I didn't know you could group sub-groups, e.g. http://209.0xd8.59120, http://209.0xd8e6f0 and http://0xd1d8e6f0
Re:IP address can be written 121 ways by lucb1e on Monday March 04, 2019 @09:54AM (#19301701)
I personally found it surprising that the formats can be mixed arbitrarily within dotted notation.
Re:IP address can be written 121 ways by borumpilot on Thursday March 07, 2019 @05:24AM (#19326942)
The site is dead (for me) but I guess it is "just" about IPv4 and there is something I learned about IPv4 notation that has been hidden for me for the last 30 years:

1.1 expands to 1.0.0.1

1.1.1 expands to 1.1.0.1

Re:IP address can be written 121 ways by dmt314159 on Tuesday March 05, 2019 @12:25PM (#19312203)
obviously FF not running these through POSIX inet_pton

"The inet_pton() function does not accept other formats (such as the octal numbers, hexadecimal numbers, and fewer than four numbers that inet_addr() accepts)."