#!python

"""
    Finds local ip for the current device
"""

import socket


def find_host_local_ip():
    with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
        sock.connect(("8.8.8.8", 80))
        print(sock.getsockname()[0])


if __name__ == '__main__':
    find_host_local_ip()
