区分内网IP地址和官方IP地址
如何查明给定的 IP 地址是官方互联网地址还是内部内网 IP 地址?
How can I find out whether a given IP address is an official internet address or an internal intranet IP address?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Intranet IP 通常位于私有 IP 范围内:
这些 IP 地址不可用于 Internet IP 地址。
另请参阅http://compnetworking.about.com/od/workingwithipaddresses/f/privateipaddr .htm
Intranet IP's are often in the private IP range:
These are not usable for internet IP addresses.
See also http://compnetworking.about.com/od/workingwithipaddresses/f/privateipaddr.htm
发现给定的 IP 属于该 IP,取决于您以什么形式给出的 IP。 使用字节的最佳方式。
Founding out that given IP belongs to that, depends in what form do you have given IP. The best way to use bytes.
RFC 1918 定义了一些不能的 IP 地址范围存在于 Internet 上,因此适合 Intranet 使用(即 10/8、172.16/12、192.168/16)。
除此之外,你的意思是什么? 您是否想找出哪些 IP 与您自己的计算机位于同一子网中,或者位于其他第 3 方网络上?
另请参阅http://en.wikipedia.org/wiki/Private_network
RFC 1918 defines some IP address ranges which can't exist on the internet, and are therefore suitable for intranet use (i.e. 10/8, 172.16/12, 192.168/16).
Apart from that, what do you mean? Are you trying to find out which IPs are on the same subnet as your own machine, or on some other 3rd party network?
See also http://en.wikipedia.org/wiki/Private_network
互联网号码分配机构 (IANA) 为私有互联网保留了以下三个 IP 地址空间块:
来源
The Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private internets:
source
除了这些 A、B、C 内网类别之外,还有其他不用作公共互联网的保留地址 IP,尤其是:
还有许多浪费的IP地址(来自愚蠢的年龄)。 您不会看到
Besides those A,B,C intranet classes, there are other reserved addresses not used as public internet IPs, especially:
There are also many wasted IP addresses (legacy from stupid ages). You won't see most addresses in range