Determin network interface

jakobsg at jakobsg at
Tue Oct 3 00:35:40 CEST 2006

Hi. How can I determin the hwaddr or ipaddress of the networkinterface
that is used in an outgoing connection? I need a kind of traceroute in
python or lowlevel socket function that can help me find out which one
of my hosts networkinterfaces that is actually used or going to be used
to reach a certain remote host. Can I do this?

More information about the Python-list mailing list