[Forged?] Re: How to find the port a server is listening on (from within the server)

Tim Williams (gmail) tdwdotnet at gmail.com
Fri Nov 25 19:51:11 EST 2005


On 26/11/05, jepler at unpythonic.net <jepler at unpythonic.net> wrote:
>
>
>
> If I understand correctly, you're looking for the socket method
> getsockname(), documented at
> http://docs.python.org/lib/socket-objects.html
>
> Jeff
>
>
Many thanks Jeff,     self.server.socket.getsockname() did the trick.

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051126/4f67d46f/attachment.html>


More information about the Python-list mailing list