开发者

C# bandwidth monitor excluding local traffic

开发者 https://www.devze.com 2022-12-14 22:01 出处:网络
I am trying to find some example code to build a bandwidth monitor to keep tabs on my daily on/off peek download usage. I have a semi working solution but the data it shows includes all data transferr

I am trying to find some example code to build a bandwidth monitor to keep tabs on my daily on/off peek download usage. I have a semi working solution but the data it shows includes all data transferred over my LAN as well as via my ISP.

Is there some way to separate out LAN from ISP b开发者_如何学编程ound traffic in data totals.

Thanks.


Simply include only the traffic where either the source or the destination IP address is non-local. 192.168.*.* and 10.*.*.* are two such "local" address patterns.

0

精彩评论

暂无评论...
验证码 换一张
取 消