#!/usr/bin/python from socket import * myHost = "" myPort = 12345 s = socket(AF_INET, SOCK_STREAM) s.connect((myHost,myPort)) myString = "The sky above the port was the color of television, tuned to a dead channel." s.send(myString)