Determin network interface

jakobsg at gmail.com jakobsg at gmail.com
Tue Oct 3 08:59:18 CEST 2006


Thanks a bunch! That is just what I was looking for !

Best regards Jakob

Bryan Olson skrev:
> jakobsg at gmail.com wrote:
> > Hi. How can I determin the hwaddr or ipaddress of the networkinterface
> > that is used in an outgoing connection?
>
> Is sock_object.getsockname() enough?
>
>      http://docs.python.org/lib/socket-objects.html
> 
> 
> -- 
> --Bryan




More information about the Python-list mailing list