def METHOD_NAME():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.connect(("8.8.8.8", 80))
    ip = s.getsockname()[0]
    s.close()
    if not ip:
        print("Error: Can't get local IP address")
        exit(1)
    return ip