(04-06-2022, 08:30 AM)Ahmed Sayed Wrote: For example, I want the program to detect if I removed the Ethernet cable or turned off the WiFi on the laptop, and when I reconnect the Ethernet cable or turn WiFi on it should detect that too.
That is outside of Indy's scope. There is no cross-platform way to accomplish what you are asking for. You need to resort to platform-specific APIs. For instance, the Network List Manager API on Windows, the ConnectivityManager API on Android, etc.