Hello,
Another solution is to ping the server, if you get a response the server is online. :)
using System.Net.NetworkInformation;
PingReply pingReply;
using (var ping = new Ping())
{
pingReply = ping.Send("fileservername");
}
if (pingReply.Status == IPStatus.Success)
{
Console.Write("Server is available");
}
}
Valery.