How I get all tcp connections from a specific app?
I have all connections, it is ok but I need to determine process Id or appName or Image (is named on Windows resource monitoring network tab).
Currently I have this:
var properties = IPGlobalProperties.GetIPGlobalProperties();
var connections = properties.GetActiveTcpConnections().Where(I need here).ToList();
But I'm not sure what to use in the Where()
linq statement?