Want to Determine if IP is Public or Not
Posted on 2005-03-30
I'm trying to develop a custom Internet server, with several services... In order to AUTO configure correctly
this server must know if the IP address got from DHCP or even entered from the user is Public or Not.
Parhaps you may think .. well.. test the first octets of the ip, and see if it is reserved but, remeber
not all ISP's give you a reserved IP for example a local ISP gives via dhcp a 18.104.22.168 IP address to it's customers.
but that address belongs to a PRIVATE network.
How can I determine if my IP is public or private?..