import socket if __name__ == '__main__': clientSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM); data = "Hello Server!"; clientSocket.sendto(data.encode(),("172.26.145.62",9090)); dataFromServer,sourceAddress = clientSocket.recvfrom(1024); print(dataFromServer.decode());