import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(("10.128.0.15", 5013)) s.listen(1) conn, addr = s.accept() while 1: data = conn.recv(1024) print(data)