def METHOD_NAME(
    dest='109.69.8.152',
) -> Union[ipaddress.IPv4Address, ipaddress.IPv6Address]:
    """Gets the local IP of the interface that has access to the
    Internet.
    This is a reliable way to test if a device has an active
    connection to the Internet.
    This method works by connecting, by default,
    to the IP of ereuse01.ereuse.org.
    >>> local_ip()
    :raise OSError: The device cannot connect to the Internet.
    """
    import socket, ipaddress
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.connect((dest, 80))
    ip = s.getsockname()[0]
    s.close()
    return ipaddress.ip_address(ip)