3

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?

ResourceMonitor

Liam
  • 27,717
  • 28
  • 128
  • 190
is_oz
  • 813
  • 1
  • 8
  • 27
  • See following posting : https://stackoverflow.com/questions/577433/which-pid-listens-on-a-given-port-in-c-sharp – jdweng Jan 22 '18 at 12:03
  • Possible duplicate of [Which PID listens on a given port in c#](https://stackoverflow.com/questions/577433/which-pid-listens-on-a-given-port-in-c-sharp) – user1859022 Jan 22 '18 at 12:05

0 Answers0