In a .NET application, how can I identify which network interface is used to communicate to a given IP address?
I am running on workstations with multiple network in
Neither of these will actually give the OP the info he's looking for -- he wants to know which interface will be used to reach a given destination. One way of doing what you want would be to shell out to the route command using System.Diagnostics.Process class, then screen-scrape the output. route PRINT (destination IP)
will get you something useable. That's probably not the best solution, but it's the only one I can give you right now.