ip = '127.0.0.1'
print('Connection from : %s:%s' % (ip, port))
client = socket.socket()
client.connect((ip, port))
receive = threading.Thread(target=receive_loop, args=(client,))
receive.start()
while True:
    data = input('Enter command:')
client.send('Client sent: ' + data)
if __name__ == '__main__':
    main()
Two clients don't connect successfully to the server