09-22-2017, 04:53 PM
I think this one is good, but need help with translating for qm
https://stackoverflow.com/questions/306 ... p-and-port
This snippet will work for testing a server listening to a given IP and port with the TCP protocol.
Futhermore, you could also try to ping the IP:
Ping ping = new Ping();
PingReply pingReply = ping.Send("192.168.0.200");
if (pingReply.Status == IPStatus.Success)
{
//Server is alive
}
Ping class is located in System.Net.NetworkInformation.
https://stackoverflow.com/questions/306 ... p-and-port
This snippet will work for testing a server listening to a given IP and port with the TCP protocol.
Futhermore, you could also try to ping the IP:
Ping ping = new Ping();
PingReply pingReply = ping.Send("192.168.0.200");
if (pingReply.Status == IPStatus.Success)
{
//Server is alive
}
Ping class is located in System.Net.NetworkInformation.
