'Try to find the active IP addresses.'

@staticmethod
def find_active_ip_address():

    import netifaces
    gateway_itf = netifaces.gateways()['default'][netifaces.AF_INET][1]
    return netifaces.ifaddresses(gateway_itf)[netifaces.AF_INET][0]['addr']
