Module ip

Module ip 

Source
Expand description

IP address utilities.

Functionsยง

is_global_ip
Returns true if the address appears to be globally routable.
is_global_ipv4
Returns true if the address appears to be globally reachable as specified by the [IANA IPv4 Special-Purpose Address Registry].
is_global_ipv6
Returns true if the address appears to be globally reachable as specified by the [IANA IPv6 Special-Purpose Address Registry].