How to find the port a server is listening on (from within the server)

jepler at unpythonic.net jepler at unpythonic.net
Fri Nov 25 19:09:00 EST 2005


If I understand correctly, you're looking for the socket method
getsockname(), documented at
http://docs.python.org/lib/socket-objects.html

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051125/c703a366/attachment.sig>


More information about the Python-list mailing list