Hi, I don't have server listening on port 8084 but I can open socket to it (and to many other ports, tested for all<8000)
import socket def test(port): af, socktype, proto, canonname, sa = socket.getaddrinfo('localhost', port, socket.AF_INET, socket.SOCK_STREAM)[0] s = socket.socket(af, socktype, proto) s.settimeout(1.0) s.connect(('localhost', port)) s.close() # This doesn't throw socket.error, it happily finishes for x in range(1, 8000): test(x) Thanks, Tvrtko -- http://mail.python.org/mailman/listinfo/python-list