Skip to main content
it really doesn't matter whether the number has 2, 3 or 4 digits
Source Link
Heinzi
  • 3.9k
  • 10
  • 36
  • 52

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number starting with a zero (or a two-digit one starting with zero, thanks @Dietrich-Epp), then ping will assume the numbers arenumber is octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number starting with a zero (or a two-digit one starting with zero, thanks @Dietrich-Epp), then ping will assume the numbers are octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a number starting with a zero, then ping will assume the number is octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Added note about leading zero.
Source Link

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number starting with pinga zero (or a two-digit one starting with zero, thanks @Dietrich-Epp), then itping will assume the numbers are octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number with ping then it will assume the numbers are octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number starting with a zero (or a two-digit one starting with zero, thanks @Dietrich-Epp), then ping will assume the numbers are octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Source Link

It depends on the tool.

For most purposes the two will be the same, but not always.

For example, if you use a 3-digit number with ping then it will assume the numbers are octal.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users>ping 011.012.013.014

Pinging 9.10.11.12 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 9.10.11.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),