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
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))