THRIFT-4312 Erlang client cannot connect to Python server: exception
error: econnrefused
This closes #1365
diff --git a/tutorial/py/PythonServer.py b/tutorial/py/PythonServer.py
index eb132a1..7c590ba 100755
--- a/tutorial/py/PythonServer.py
+++ b/tutorial/py/PythonServer.py
@@ -85,7 +85,7 @@
if __name__ == '__main__':
handler = CalculatorHandler()
processor = Calculator.Processor(handler)
- transport = TSocket.TServerSocket(port=9090)
+ transport = TSocket.TServerSocket(host='127.0.0.1', port=9090)
tfactory = TTransport.TBufferedTransportFactory()
pfactory = TBinaryProtocol.TBinaryProtocolFactory()