IP地址转换为十进制,反之亦然 [英] IP address conversion to decimal and vice versa
问题描述
假设我的十进制数字为 9766322441
,因此其对应的数字为 70.30.65.9
,但是当此IP地址IC转换回去时,它给出了一些不同的十进制数 1176387849
...,当我将pf。google.com的IP地址转换为 64.233.187.99
然后给出 1089059683
,反向转换给出正确的IP地址,即 64.233.187.99
...
Suppose my decimal number is 9766322441
so its corresponding is 70.30.65.9
but when this IP address IC converted back, its gives some different decimal number 1176387849
... and when I convert the IP address pf google.com i.e 64.233.187.99
then it gives the 1089059683
and reverse conversion gives the correct IP address i.e 64.233.187.99
...
我的问题是上述数字有什么问题吗?我也尝试使用 9579342332
,但结果相同。
My question is what is wrong with the the above mention number? I also try with 9579342332
but the same result. It gives the wrong reverse conversion??
其背后的原因是什么?
您可以使用< a href = http://www.ipaddresslocation.org/convertip.php rel = nofollow>此计算器进行计算。
推荐答案
IPv4地址在32位上。
IPv4 addresses are on 32 bit.
数字 9,766,322,441
无法表示32位(最大: 4,294,967,295
)。
The number 9,766,322,441
cannot be represented on 32 bit (max: 4,294,967,295
).
这篇关于IP地址转换为十进制,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!