Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の時点で Windows が受信しているオープン HTTP (TCP ポート 80) 接続の総数を取得したいと考えています。
.NET でこれを取得する方法はありますか?
何らかの方法でIPGlobalProperties.GetActiveTcpConnectionsを照会する必要がありますか?
私のために働く:
var properties = IPGlobalProperties.GetIPGlobalProperties(); var httpConnections = (from connection in properties.GetActiveTcpConnections() where connection.LocalEndPoint.Port == 80 select connection);