4 ms·
Interesting, so that's also whats happening with 127.1 and 127.0.1: the zeroes are not being "inserted automatically", they come from expanding the last number
by moefh 3y ago
Interesting, so that's also whats happening with 127.1 and 127.0.1: the zeroes are not being "inserted automatically", they come from expanding the last number (1) into the bits for the last bytes of the address.
To make it clearer:
- for "x", then "x" is all 4 bytes of the address
- for "x.y", then "x" is the first byte of the address and "y" the last 3 bytes
- for "x.y.z", then "x" is the first byte, "y" is the second" and "z" is the last 2
- for "x.y.z.w", then each of the numbers is its own byte
- eftychis 3y agoThat is correct. The dots are there for our convenience to be able to spot individual bytes. I hope the author addresses and edits their article accordingly.
- mynameisvlad 3y agoTheir article from 3 years ago? I somehow doubt they're going to be making any edits now.
- kamray23 3y agoI guess the most useful way of describing the dot-decimal notation for IP(v4) addresses is that it consists of at least one and at most four numbers separated by dots, each of which represents on octet of the address (MSB on the left), save for the last number, which always represents all remaining octets. Each number is by default a decimal number but can also be an octal (prefix 0) or a hexadecimal number (prefix 0x). That should include all cases. Stuff like 10.05003 → 10.0.10.3.