3 ms·
Not just ipv6. $ ping 127.1 PING 127.1 (127.0.0.1): 56 data bytes ... $ ping $(((127 << 24) + 1)) PING 2130706433 (127.0.0.1): 56 data bytes ... I
by mgerdts 8y ago
Not just ipv6.
$ ping 127.1
PING 127.1 (127.0.0.1): 56 data bytes
...
$ ping $(((127 << 24) + 1))
PING 2130706433 (127.0.0.1): 56 data bytes
...
I've primarily seen the second form in the early days of the web when spammers were presumably trying to bypass mail or web filters that were scanning for blacklisted IPs.
Edit: fix formatting
- mschuster91 8y agoHex works too (tested on OS X): ping 0x7f000001 PING 0x7f000001 (127.0.0.1): 56 data bytes or, as a URL (tested in OS X Chrome, and the URL formatter of HN also shows it, with Chrome hover showing 127.0.0.1): https://0x7f000001/ https://0x7f000001/
- deleted 8y ago[deleted]