code: def start_local_nameserver(host=None, port=0, nic_name=None):
  	
  	
  	if host is None:
  		if nic_name is None:
  			host = 'localhost'
  		else:
  			host = nic_name_to_host(nic_name)
  
  	uri, ns, _ = Pyro4.naming.startNS(host=host, port=port)
  	host, port = ns.locationStr.split(':')
  	
  	
  	thread = threading.Thread(target=ns.requestLoop, name='Pyro4 nameserver started by HpBandSter')
  	thread.daemon=True
  	
  	thread.start()
  	return(host, int(port))
docs: starts a Pyro4 nameserver in a daemon thread
  		
  		Parameters:
  		-----------
  			host: str
  				the hostname to use for the nameserver
  			port: int
  				the port to be used. Default =0 means a random port
  			nic_name: str
  				name of the network interface to use
  		
  		Returns:
  		--------
  			tuple (str, int):
  				the host name and the used port