The module boing.net.ip provides few functions related to IP addressing.
Return a pair (addr, port) representing the IP address associated to the host host for the specified port, family and socket type.
Return a string representing the QHostAddress addr.