That man is a genius: >>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) >>> s.connect(("gmail.com",80)) >>> print s.getsockname() ('192.168.0.174', 2768) >>> s.close()
Should work on Windows as well. -- http://mail.python.org/mailman/listinfo/python-list