> I wanna know if a certain computer exists on the
network by giving its name.
Resolve the name. If it throws an exception, it couldn't find it for some
reason:
try {
IPHostEntry hostInfo = Dns.GetHostByName(hostName);
Console.WriteLine(hostInfo.AddressList[0].ToString());
} catch (SocketException exc) {
Console.WriteLine("[Error {0}]: {1}", exc.ErrorCode, exc.Message);
}
Hope that helps,
-JG