I want to know how to check if a machine on my network is online, using only C#.
All machines on my network use the same OS (Windows 7) and I'm logged in as the same user on all machines.
My goal is to check if they are active, or open.
Simple:
Ping ping = new Ping();
PingReply pingReply = ping.Send("ip address here");
if(pingReply.Status == IPStatus.Success)
{
//Machine is alive
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With