obviously you cannot store the IP address in integer
In fact, the entire IP address (v4) is a 32-bit integer (or 128-bit, in the case of IPv6).
The “human-readable” format you are talking about is obtained by dividing the bits of the whole into groups of 8, called “octets,” and converting them to base 10, for example. " 192.168.0.1 ".
The bits of this address will look like this (spaces added for reading):
11000000 10101000 00000000 00000001
Which corresponds to the decimal integer 3,232,235,521.
Donut
source share