def get_server(host, port, logRequests=False):
    if host is None: # use localhost as default
        host = 'localhost'
    server = SimpleXMLRPCServer((host, port), logRequests=logRequests)
    port = server.socket.getsockname()[1]
    logging.info("Running XMLRPC server on port %d..." % port)
    return server, port
Start xmlrpc server on requested host:port.
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/get_server