且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Python 2.7:socket.error 错误 [Errno 111] - 连接被拒绝

更新时间:2022-05-15 08:28:35

解决了.在运行 ifconfig (192.168.1.***) 时,我必须使用给定的 IP.我绑定到 localhost,因此无法远程连接到服务器.

Solved it. I had to use the IP given to in when running ifconfig (192.168.1.***). I was binding to localhost, and thus I could not connect to the server remotely.