I know .net allows a method to detect if your network IP has changed via System.Net.NetworkInformation. I would like to be able to detect changes to the number of TCP or UDP connections to a computer.
So instead of scraping the IP end points every x seconds I want the system to notify me of new connections or dropped connections.
Are there any event handlers for this?
I use c#.