Errno 10061 : No connection could be made because the target machine actively refused it ( client - server )

后端 未结 14 698
無奈伤痛
無奈伤痛 2020-11-28 11:11

I have a problem with these client and server codes, I keep getting the [Errno 10061] No connection could be made because the target machine actively refused it

14条回答
  •  孤城傲影
    2020-11-28 11:23

    The solution is to use the same IP and Port number in both client and server. Try, in client to use TCP_IP = 'write the ip number here' TCP_PORT = writ the port number here s.connect((TCP_IP, TCP_PORT))

提交回复
热议问题