title: How to send the ping argument in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1069103/how-to-get-my-own-ip-address-in-c">How to get my own IP address in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>In C# console application, I am using this code</p>
  
  <pre><code>var ping = new Ping();
  var reply = ping.Send();
  if (reply.Status == IPStatus.Success)
  {
      Console.WriteLine("Pinging with server");
      Console.WriteLine("Press any key to continue");
      Console.ReadKey(true);
  }
  </code></pre>
  
  <p>So in <code>var reply = ping.Send();</code> what argument do I need to pass so as it should write the IP of the local machine? Here I need IP of the local machine in the argument.</p>