I need to calculate the network latency on a system which has multiple connected adapters . I am using the System.Net.NetworkInformation.Ping class to ping an address and use the RoundtripTime property to determine latency.
This works fine. However on a system with multiple connected adapters , I need to provide the source IP to use, to determine the latency on each of the available connections.
This class however does not provide an option to ping using a particular source IP address
I need something similar to the ping DOS command . This command has the option of -S which allows you to provide a source IP address.
Is there a way to specify the source IP address in System.Net.NetworkInformation.Ping. The PingOptions class does not provide any such option .
Thanks.