For those who want to try it at home:

ping 33333333
ping 55555555

I am sorry, two random Internet users in Korea and Germany, your IP addresses are simply special.

  • Treczoks@lemmy.world
    cake
    link
    fedilink
    arrow-up
    19
    ·
    23 hours ago

    Yes, but you can write it in different ways. If the numeric string contains a dot, left of it must be between 0 and 255, and is put in the highest byte of the address. If the rest also contains a dot, repeat, but put it into the second highest byte.

    BUT: if the string does not contain a dot, the number is put into the remaining bytes.

    So 123.256 is a valid address. The 123 goes into the top byte, the 256 goes into the remaining three bytes, so the address would be 123.0.1.0.

    Most common example is 127.1, which is short for 127.0.0.1 - the localhost address.