()
return _thishost
Return the IP addresses of the current host.
Return the IP addresses of the current host.
Return the IP addresses of the current host .
def thishost():
    """Return the IP addresses of the current host."""
    global _thishost
    if _thishost is None:
        try:
            _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2])
        except socket.gaierror:
            _thishost = tuple(socket.gethostbyname_ex('localhost')[2])
    return _thishost
def thishost ( ) : global _thishost if _thishost is None : try : _thishost = tuple ( socket . gethostbyname_ex ( socket . gethostname ( ) ) [ 2 ] ) except socket . gaierror : _thishost = tuple ( socket . gethostbyname_ex ( 'localhost' ) [ 2 ] ) return _thishost