Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 38
    Not so much ping, but the underlying routine it uses inet_addr()
    – cde
    Commented Dec 28, 2014 at 17:31
  • 2
    It's also happening on OSX. Commented Dec 29, 2014 at 12:03
  • 21
    It's not because it has three digits, it's because the number has a leading zero. You can test this by trying to ping 09.09.09.09, which doesn't work because 9 isn't valid in octal. Commented Dec 30, 2014 at 7:34
  • 1
    Ping also accepts four-digit numbers starting with zero, but the maximum value is 0377, which is 255.
    – phoog
    Commented Jun 2, 2020 at 22:05