Why does pinging 192.168.072 return a response from 192.168.0.58?
superuser.com
superuser.com
Note also that telephone numbers in the US can be written in the form a.b.c, where a and b are 3 digits and c is four digits.
It would be really cool to get a matching telephone number and IP address, so you could print on your business card something like "Telephone and IP: 206.253.2317".
As a side note/tip: Most phones these days (well, Android, iPhone, and Skype) accept the + for fully formatted numbers[2]. It makes it handy if you travel and want your stored contacts to work regardless of phone network.
Seems to work. My localhost is 172.16.53.144 and pinging 172.020.53.144 works, returning 172.16.53.144.
Never knew that notation was supported.
http://www.reddit.com/r/javascript/comments/11d9ya/can_someo...
$ ping 0x7f.0x0.0x0.0x1
PING 0x7f.0x0.0x0.0x1 (127.0.0.1): 56 data bytes- hackers can't read an RFC
- hackers don't know octal
- hackers can't trial-and-error an interesting behaviour until they see a pattern and learn for themselves.
All one has to do is look at the source for ping and questions like these are answered.
However, the value of looking at ping is it let's you see a simple example of a lot of networking system calls which you can then dig into. I had a class project to write a simple web-server and text based browser in C and ping was actually a great place to start.
That applies to the majority of 'knowledge' these days.
a few organizations, FWIW, insist on writing decimal dotted quads zero padded (e.g. 192.168.19.20 becomes 192.168.019.020) for evan formatting. this barfs various tools and scripts that (not surprisingly) expect octal if they see a leading 0 and then barf on the non-octal-ness of the data OR get it wrong.
something to be aware of, especially if you script batch processing of inputs that include lists of IPs.
I was curious about it being limited to the UNIX world, and indeed, C# is the only C-like language that does not have this feature. On the UNIX side, even Go decided to keep them [0]. Python dropped them in v3 but I'm not sure if that counts as a UNIXy language or not...
[0] http://groups.google.com/group/golang-nuts/browse_thread/thr...
Try for ex dig -t aaaa facebook.com
EDIT: Fun fact: Chrome's address bar will convert hex IPs for you on the fly. Try typing in http://0xDEADBEEF and look in the suggest box.
Blame? http://www.spinics.net/lists/linux-driver-devel/msg15311.htm...
$ ping 10.010.0x10
PING 10.010.0x10 (10.8.0.16) 56(84) bytes of data.