How to determine if a computer is connected / connected on a given network.
Of course, this has several uses, but my main problem is that my application uses resources located on specific machines, and if they are not available, it will not even try to connect and will use local resources.
You can try to ping by car. check out this article Making a PING with Delphi and the WMI.
Making a PING with Delphi and the WMI
An ICMP echo request (PING) will tell you if the machine is online and available. It will not indicate whether the service you want to connect to is available on the machine (up and down).
, , , .
, , . , , , , , , , TCP ICMP-- . , , , - . , , ?
There is a different strategy than trying to connect: let the server tell customers if services are available by sending UDP Broadcast or some kind of heart rate signal compared to the middleware (pipes?) That the clients listen to - publish / subscribe to the communication model.