C# bandwidth monitor excluding local traffic
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.
精彩评论