def register_server(serverobject, host=None, port=0, unixsocket=None, nathost=None, natport=None):
    host = host or Pyro4.config.HOST or Pyro4.socketutil.getIpAddress(socket.getfqdn())
    pyrodaemon = Pyro4.Daemon(host=host, port=port,
            unixsocket=unixsocket, nathost=nathost, natport=natport)
    uri = pyrodaemon.register(serverobject)
    ns=Pyro4.locateNS()
    ns.register("{}:{}".format(serverobject.__class__.__name__, socket.getfqdn()), uri)
    p = PyroAsyncAdapter(pyrodaemon)
    asyncio.poller.register(p)
    return p
Regiseter the server with Pycopia asyncio event handler.
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/pyro.py/register_server