How can Client get "Client IP" ?

Jeff Epler jepler at unpythonic.net
Thu Jul 22 09:43:56 EDT 2004


For a socket object s, s.getsockname() "Return the socket's own address.
This is useful to find out the port number of an IPv4/v6 socket, for
instance. (The format of the address returned depends on the address
family -- see above.)"

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/20040722/15b5ee07/attachment.sig>


More information about the Python-list mailing list