# client.py import socket def main(): # creating the socket sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # just connecting sck.connect(("localhost", 7456)) print("Sending data...") sck.sendall(b"Hola server, are you bored?") # I don't care about your response server, I'm closing sck.close() if __name__ == "__main__": main()