How can I find out whether a given IP address is an official internet address or an internal intranet IP address?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- Doing ARP and Inverse ARP on Linux 2.6.21 (glibc 2
- C# Removing trailing '\0' from IP Address
- Get host name From IP address iOS 10
- Finding local IP addresses using Python's stdl
相关文章
- How to resolve hostname to an ip address in node j
- Parsing IP Address to string doesn't work for
- Is it possible to open an excel file in its curren
- Retrieve IP Address of the Default Printer Driver
- How to route API Requests through a specific IP?
- Get IP Address of the requested client (Soap messa
- change proxy on mac osx programmatically
- Best type for IP-address in Hibernate Entity?
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
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
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
Founding out that given IP belongs to that, depends in what form do you have given IP. The best way to use bytes.
The Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private internets:
source