Possible Duplicate:
How to get my own IP address in C#?
In C# console application, I am using this 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);
}
So in var reply = ping.Send();
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.