code: def get_host_address(host=None, default_address=DEFAULT_HOST_IP):
      
  
      try:
          return unicode(socket.gethostbyname(host or socket.gethostname()),
                         Constants.default_codec,
                         Constants.codec_error)
      except Exception as error:
          return default_address
docs: Returns the given host address.
  
      :param host: Host to retrieve the address.
      :type host: unicode
      :param default_address: Default address if the host is unreachable.
      :type default_address: unicode
      :return: Host address.
      :rtype: unicode