开发者

can SimpleXMLRPCServer listen on multiple addresses?

开发者 https://www.devze.com 2022-12-16 18:58 出处:网络
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 wi开发者_如何学Pythonth Apache.

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 wi开发者_如何学Pythonth Apache.

Thank you,


Use "" as the host:

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

精彩评论

暂无评论...
验证码 换一张
取 消