title: How to check latency between server and client
body: <p>How can I check latency between server and client using asp.net.  I would like to ping the server from the client and get back the results.  Is this possible?</p>
  
  <p>I can ping the ip address of the client but obvisouly this doesn't work for numereous reasons.  For example on speedtest.net they check latency and report back milliseconds I would like to aceive the same thing.</p>
  
  <pre><code>string strClientIP = Request.UserHostAddress;
  Ping ping = new Ping();
  PingReply pr;
  pr = ping.Send(strClientIP);
  </code></pre>