Есть сервер:
# python3
import socket
serv_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, proto=0)
IP = socket.gethostbyname(socket.gethostname())
serv_sock.bind((IP, 53210))
serv_sock.listen(10)
print(IP)
while True:
client_sock, client_addr = serv_sock.accept()...