WebSocket-for-Python: ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
when running WebSocketManager example met a error:
Traceback (most recent call last):
File "D:\test\python\websockets-master\example\Copy of ws4py_server.py", line 24, in <module>
client.connect()
File "C:\Python34\lib\site-packages\ws4py\client\__init__.py", line 209, in connect
self.sock.connect(self.bind_addr)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
the client example on https://ws4py.readthedocs.org/en/latest/sources/managertutorial/ os: windows xp sp3, python3.4
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 29 (6 by maintainers)
I find out the reason of this error. Must start server before client. if no server running, the client will meet ConnectionRefusedError. I made a low level mistake. Close this issue, please. thank you.
under win7 64bit, have the same error(ConnectionRefusedError).
Why was this issue closed? I couldn’t find what solution was provided… !? How and where should I have started running before making the call?