From C# console application i had open the command prompt and checked the ping utility.
string aptracommand;
aptracommand = "/C ping 10.38.2.73";
Process.Start(@"cmd",aptracommand);
Now , i need to apply a conditional statement if ping request time out then it should say “Not able to connect” and if its able to ping then need to show “Server is up”
You can use Ping class for this purpose. As stated below:
You can reduce the time out value to quickly check if server is up or down.