An object to represent IPv4 addresses and IPv4Networks. When
IPv4Obj objects are compared or sorted, shorter masks are greater than longer masks. After comparing mask length, numerically higher IP addresses are greater than numerically lower IP addresses.
Returns the IP address as a tuple of zero-padded binary strings
Returns the IP address as a decimal integer
Returns the IP address as a tuple of zero-padded hex strings
Returns the broadcast address as an IPv4Address object.
Returns the host mask as an IPv4Address object.
Returns the address as an IPv4Address object.
Returns a boolean for whether this is a multicast address
Returns a boolean for whether this is a private address
Returns a boolean for whether this is a reserved address
Returns the network mask as an IPv4Address object.
Returns an IPv4Network object, which represents this network.
Returns the total number of IP addresses in this network, including broadcast and the “subnet zero” address
Returns the length of the network mask as an integer.
Returns the version of the object as an integer. i.e. 4