import socket HOST = "10.128.0.15" # Standard loopback interface address (localhost) PORT = 5013 # Port to listen on (non-privileged ports are > 1023) initialized =0 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print(f"Connected by {addr}") imei = conn.recv(1024) try: message = '\x01' message = message.encode('utf-8') conn.send(message) except: asw = 1 while True: try: data = conn.recv(1024) if not data: break received = binascii.hexlify(data) print(received) except: aa = 1