def local_ip_address():
    """IP address of the local network interface as string in dot notation"""
    import socket
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    try:
        s.connect(('129.166.233.186', 1024))
    except socket.error:
        return '127.0.0.1'
    address, port = s.getsockname()
    return address
