Re:This is a valid ipv4 address
by ColinDabritz on Sunday October 20, 2013 @01:53PM
(#6580724)
I recognize the other formats, but what format is "http://7393249866/"? It opens about:blank in chrome. How is it distinguished from the format above it?
[ Parent
| on HN ]
7393249866 mod 2^32 is 3098282570. I'm not convinced you can do that - although it works in Firefox, telnet and ping don't like it.
Edit: I highly doubt that this is standard behavior. I suspect that implementations that permit this are storing the number in a 32 bit integer and not checking to see that it was truncated.
ping and other command line tools don't mind it for me on OSX, I don't know what the distinction between them would be though.
$ ping 7393249866
PING 7393249866 (184.172.10.74): 56 data bytes
64 bytes from 184.172.10.74: icmp_seq=0 ttl=47 time=259.042 ms
Re:This is a valid ipv4 address
by ColinDabritz on Sunday October 20, 2013 @02:06PM
(#6580785)
It seems to work in Safari as well. I sort of understand the dword format, but why would this be useful, or a standard?