Errno 10061 in python, I don't know what do to

前端 未结 1 717
一个人的身影
一个人的身影 2021-01-19 20:19

I learned sockets in python. When I tried to programming sockets script in one computer, it worked, but when I tried to programming sockets script with two different compute

相关标签:
1条回答
  • 2021-01-19 20:45

    Errno 10061:

    It means the server you are trying to connect to is not waiting for one.

    • Make sure you have the port number open.
    • Try killing all python processes and start server again.

    Update

    Instead of

    host = socket.gethostname()
    

    use

    host = ""
    
    0 讨论(0)
提交回复
热议问题