3 ms·
What's decimal form (base ten?) and why is that 16843009 the decimal form of 1.1.1.1?
by esperent 1y ago
What's decimal form (base ten?) and why is that 16843009 the decimal form of 1.1.1.1?
- itsgrimetime 1y ago00000001 00000001 00000001 00000001 = 16843009 in base 10 (concatenate each dot-separated 8bit number as one big base 10)
- phanimahesh 1y agoIP addresses are 4 bytes, each in the range 0-255. In binary bits xyz would be equivalent to decimal x2^2+y2+z. Similarly, bytes abc would be equivalent to decimal a256^2+b256+c. IP address p.q.r.s is decimal p256^3+q256^2+r*256+s.
- fluidcruft 1y ago1.1.1.1 is 0x01010101 and 0x01010101 is 16843009 in decimal
- ForOldHack 1y agoUm no. Parent is exactly right: p256^3+q256^2+r*256+s
- bawolff 1y agoBoth of these are the same thing
- fluidcruft 1y agoYour homework is to read up on the structure of the IP4 dataframe header.
- esperent 1y ago> 1.1.1.1 is 0x01010101 Huh, in many years of web development I never knew that. Thanks!
- johannes1234321 1y agoOnce you got that you will have a way simpler time to understand netmasks and similar and calculate IP ranges etc. it's just a 32bit integer (in ipv4; 64bit with ipv6) and the dots separate the individual bytes to give a "human friendly" representation.