import socket print "Creating socket...", s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print "done." print "Connecting to www.java2java.com.", s.connect(("www.java2java.com", 80)) print "done."