1.1.1.1 is 0x01010101 and 0x01010101 is 16843009 in decimal
Um no.
Parent is exactly right:
p256^3+q256^2+r*256+s
Both of these are the same thing
Your homework is to read up on the structure of the IP4 dataframe header.
> 1.1.1.1 is 0x01010101
Huh, in many years of web development I never knew that. Thanks!
Once 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.
00000001 00000001 00000001 00000001 = 16843009 in base 10 (concatenate each dot-separated 8bit number as one big base 10)
IP 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.