The netaddr.IPAddress.is_private method is used in Python to check whether an IP address belongs to a private range. Private IP addresses are reserved for use within private networks and are not routable over the internet. This method returns True if the IP address is private and False if it is not. It uses the following IP address ranges to determine if an address is private: 10.*.*.*, 172.16.*.* to 172.31.*.*, and 192.168.*.*. This method is useful for network administrators and developers working with IP addresses to identify and handle private addresses differently from public addresses.
Python IPAddress.is_private - 41 examples found. These are the top rated real world Python examples of netaddr.IPAddress.is_private extracted from open source projects. You can rate examples to help us improve the quality of examples.