简体   繁体   中英

How can I get the IP address that a specific process is connected to? (C#)

More precisely, I need to access these values that are shown on perfmon.exe:

在此处输入图片说明 I've already tried netstat, performance counter, some other classes refering to networking, but I didn't end up with a method to access those values.

Thanks for the help!

在其他API中,Perfmon使用TCP_TABLE_OWNER_PID_CONNECTIONS标志调用GetExtendedTcpTable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM