How can Client get "Client IP" ?

Jeff Epler jepler at
Thu Jul 22 15:43:56 CEST 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.)"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list