By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

Determin network interface

P: n/a
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?

Oct 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ja*****@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
Oct 3 '06 #2

P: n/a
Thanks a bunch! That is just what I was looking for !

Best regards Jakob

Bryan Olson skrev:
ja*****@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
Oct 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.