[DllImport("Iphlpapi.dll", SetLastError = true)] public static extern uint GetBestInterface( uint DestAddr, out uint BestIfIndex );
Microsoft documentation: Link
Last updated 1 year ago