code: 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
docs: Return the IP addresses of the current host.