title: Identifying active network interface
body: <p>In a .NET application, how can I identify which network interface is used to communicate to a given IP address?</p>
  
  <p>I am running on workstations with multiple network interfaces, IPv4 and v6, and I need to get the address of the "correct" interface used for traffic to my given database server.</p>