from server import XMLRPCServer valid_servers = [('warri1.dyndns.org', 10000)] server = XMLRPCServer(('localhost', 50145), valid_servers) try: server.serve_forever() finally: server.server_close()