How to get bytes sent/received only to the internet?
Hi,
I'm a beginner in C#. One of my personal hobbies is writing a program that tracks bandwidth usage. I'd like to limit bandwidth to just traffic to and from the internet. So any local network traffic would be ignored.
I know this could be done using WinPCap with a wrapper such as SharpPcap by filtering each packet. I would prefer not to have an extra install if at all possible.
I have also looking into using WMI to retrieve packet information, but there doesn't seem to be a way to sort by Source or Destination Address.
Any help would be appreciated, thanks!
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 14, 2009, 12:23 PM EDT
and i can recommend you on a free util called NetControl
http://zamov.online.fr/projects/netcontrol/
its just what you are doing