Determin network interface

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jakobsg@gmail.com

    #1

    Determin network interface

    Hi. How can I determin the hwaddr or ipaddress of the networkinterfac e
    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 networkinterfac es that is actually used or going to be used
    to reach a certain remote host. Can I do this?

  • Bryan Olson

    #2
    Re: Determin network interface

    jakobsg@gmail.c om wrote:
    Hi. How can I determin the hwaddr or ipaddress of the networkinterfac e
    that is used in an outgoing connection?
    Is sock_object.get sockname() enough?




    --
    --Bryan

    Comment

    • jakobsg@gmail.com

      #3
      Re: Determin network interface

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

      Best regards Jakob

      Bryan Olson skrev:
      jakobsg@gmail.c om wrote:
      Hi. How can I determin the hwaddr or ipaddress of the networkinterfac e
      that is used in an outgoing connection?
      >
      Is sock_object.get sockname() enough?
      >

      >
      >
      --
      --Bryan

      Comment

      Working...