Do you mean active as in "operational" or "current activity" ? Both is possible to detect with NetworkInterface Class (System.Net.NetworkInformation). For example is has a OperationalStatus property, and it has a GetIPv4Statistics method that you can analyze to see if any parameters has current changes, for example with BytesReceived/BytesSent. The latter can also be monitored with a PerformanceCounter Class (System.Diagnostics).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.