Determin network interface

jakobsg at gmail.com jakobsg at gmail.com
Mon Oct 2 18:35:40 EDT 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