Determin network interface

Bryan Olson fakeaddress at nowhere.org
Mon Oct 2 23:35:59 EDT 2006


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