summaryrefslogtreecommitdiff
path: root/yaksh/code_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/code_server.py')
-rwxr-xr-xyaksh/code_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/code_server.py b/yaksh/code_server.py
index 2593752..faf9c0d 100755
--- a/yaksh/code_server.py
+++ b/yaksh/code_server.py
@@ -73,7 +73,7 @@ class CodeServer(object):
def run(self):
"""Run XMLRPC server, serving our methods."""
- server = SimpleXMLRPCServer(("localhost", self.port))
+ server = SimpleXMLRPCServer(("0.0.0.0", self.port))
self.server = server
server.register_instance(self)
self.queue.put(self.port)
@@ -140,7 +140,7 @@ class ServerPool(object):
"""Run server which returns an available server port where code
can be executed.
"""
- server = SimpleXMLRPCServer(("localhost", self.my_port))
+ server = SimpleXMLRPCServer(("0.0.0.0", self.my_port))
self.server = server
server.register_instance(self)
server.serve_forever()