Nov-03-2019, 12:16 AM
(This post was last modified: Nov-03-2019, 12:17 AM by Gribouillis.)
The server should not call
Also I recommend that before calling bind() the server configures the socket with
s.connect((host, port))
but s.bind((host, port))
.Also I recommend that before calling bind() the server configures the socket with
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)this is useful if you start the server several times and you don't want to receive the error address already in use.