Navigation ( archives ›› 2008 ›› February ›› 06 ›› How to calculate network bandwidth speed in c# ›› comments )

Comments on How to calculate network bandwidth speed in c#

21 Replies: (add yours)



› Posted on April 6, 2008, 9:47 pm



› Posted on April 19, 2008, 6:39 am


done in visual studio 2008 ? can't open in vs 2005.

› Posted on April 27, 2008, 4:45 am


Great, thx:)

› Posted on June 19, 2008, 2:06 pm


Hey noam, since you emailed me regarding that problem, I want to let other people know that if you are experiencing problems compiling this solution, make sure you update your .NET Framework and IDE. This code is compatible with .NET 2.0+ and VS2005+.

› Posted on June 20, 2008, 9:18 am


Thanx pal.. i was searching thz for a long time.

› Posted on March 19, 2009, 11:37 am


cant get it work in wpf application project. the byteRecived parameters might seems diffrent or calculation is wrong,, i got the same code but with DispatcherTimer();

and showing the speed in a label content


//WPF Application

label1.Content = bytesReceivedSpeed.ToString() + "\n" + bytesSentSpeed.ToString();

this code shows me diffrent speed then yours :S

any idea why?

please help

thanks for your code :)

› Posted on March 27, 2009, 9:59 am


Dear Noam.

I am very interested for this topic so I have translate its to Vietnamese to introduce to my coder-friends. Are you agree?

Happy to know your blog.

(Sorry for my bad english.)

› Posted on July 7, 2009, 1:28 am


Here link .

I can modify its for your request (if need)

› Posted on July 7, 2009, 1:30 am


› Posted on July 7, 2009, 1:31 am


› Posted on July 7, 2009, 1:31 am


What if you're connected through a router? or a set of switches?

The application will measure the packets sent over the LAN and create a false report.

› Posted on October 29, 2009, 4:03 am


thanks for the code.

I m trying to run this through visual studio 2005.

and i have to do it in that only

› Posted on June 19, 2010, 6:09 am


Thankyou.. This is genius

› Posted on October 10, 2010, 12:02 am


Thankyou.. This is genius

› Posted on October 10, 2010, 12:02 am


hello, thanks for you code..

questions, is your code can be used in client server application? which the server side need to get the bandwidth rate at the client side. the code put at the server or client side? sorry if is a dumb questions, because im new in using c# as well as socket programming.

thanks again

› Posted on September 9, 2011, 7:04 am


Hello, there are no dumb questions, so no worries :) Since you want the clients bandwidth, you need to put that on the client side and send requests to the server on intervals for the bandwidth usage.

› Posted on September 11, 2011, 9:54 pm


thanks man you save my day..

› Posted on September 27, 2011, 8:59 am


hello, is me again, thanks for reply my previous comment. i confuse and have few questions. You said the code need to put on client side, but i need to GUI/output display at the server, so the GUI is create at server side, the code is put at the client side?? or code on both side? there is no need any device like router in order to run this code right?

sorry for any inconvenient.

› Posted on November 30, 2011, 11:59 pm


hii, I want to calculate the bandwidth of inernet not for the local connection. can any one plese help me with this . I searched a lot but how to find speed of the LAN. Thanks in advance..


› Posted on October 10, 2012, 4:15 am



I want to use this code on client side to get end user internet details. Is this code can be used in client server application.

If yes, then how?

Please help me.

› Posted on June 17, 2017, 8:07 am

Comment on This Article:

No HTML allowed, URIs will be auto-linked, line breaks converted to paragraphs - . Your email address will not show up on this page, I do not store addresses, nor will I give them awat. I hate spam too. (*) - Denotes Required fields!