import socket


def get_ip_using_standard_if(host='8.8.8.8'):
    """
    Gets the ip of the 'standard interface'

    Source: https://stackoverflow.com/a/7335145
    Args:
        host (str): optional ip of a host to connect to. Default is '8.8.8.8'

    Returns: own ip address on standard interface
    """
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

    try:
        s.connect((host, 9))
        client = s.getsockname()[0]
    except socket.error:
        client = "Unknown IP"
    finally:
        del s
    return client