Search code examples
pythonsimplexmlrpcserver

can SimpleXMLRPCServer listen on multiple addresses?


I have two IPs mapping to the machine, and I was wondering how I can have one python xmlrpc server listening on both IPs (same port), like you could do with Apache.

Thank you,


Solution

  • Use "" as the host:

    s = SimpleXMLRPCServer.SimpleXMLRPCServer(("", 8000))