1 2 3 4 5 6 7 8 9 10
import socket c = socket.socket() c.connect(('localhost', 9999)) name = input("Client name:") c.send(bytes(name, 'utf-8')) print(c.recv(1024).decode())