title: Using ping in c#
body: <p>When I Ping a remote system with windows it says there is no reply, but when I ping with c# it says success. Windows is correct, the device is not connected. Why is my code able to successfully ping when Windows is not?</p>
  
  <p>Here is my code :</p>
  
  <pre><code>Ping p1 = new Ping();
  PingReply PR = p1.Send("192.168.2.18");
  // check when the ping is not success
  while (!PR.Status.ToString().Equals("Success"))
  {
      Console.WriteLine(PR.Status.ToString());
      PR = p1.Send("192.168.2.18");
  }
  // check after the ping is n success
  while (PR.Status.ToString().Equals("Success"))
  {
      Console.WriteLine(PR.Status.ToString());
      PR = p1.Send("192.168.2.18");
  }
  </code></pre>