|
|
z***h 发帖数: 405 | 3 it's IP number
3. How do I convert a IP Address to a IP Number?
IP address (IPV4) is divided into 4 sub-blocks. Each sub-block has a
different weight number each powered by 256. IP number is being used in the
database because it is efficient to search between a range of number in
database.
Beginning IP number and Ending IP Number are calculated based on following
formula:
IP Number = 16777216*w + 65536*x + 256*y + z (1)
where
IP Address = w.x.y.z
For example, if IP address is "202.186.13.4", |
|
y********o 发帖数: 2565 | 4 Everything the computer recognizes boils down to numbers, which eventually b
oils down to 0 and 1. |
|
|