I have Tcp server/client using sockets in Python.
Here is server connection code:
sock = socket.socket() sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSE