I am working on an MVC 5 site, which will ping remote servers/machines and display the response information. I would like to achieve a system that pings, not from the server, but from the client's computer accessing the site.
I currently using code very similar to the following:
string ipaddress; Ping ping = new Ping(); PingReply reply = ping.Send(ipaddress);
This appeared to be working fine. However I tested the website from multiple computers at different locations, as well as from my phone. I found that all devices show virtually the same latency in ping requests.
I would expect at the very least my phone would have much higher latency than the computers I tested, but I would also expect the computers to have somewhat different latency as well.
This leads me to believe that the Ping() and PingReply() are actually being sent from the server instead of the client. Am I correct in this assumption? And if so is there any way to achieve a Ping() and PingReply() from the client instead?