import socket sock = socket.socket() host = "10.93.0.246" port = 80 sock.connect((host, port)) sock.send("test".encode()) sock.close()