Mohamed Mansour's Personal Website
Articles
Comments on How to calculate network bandwidth speed in c#
19 Replies: (add yours)
m0
5Hey 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
ofir
7cant 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
CODE:
//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
hoai_thanh
8Dear 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
hoai_thanh
9Here link .
vn.uploader.blog.yahoo.com/post/post_html_simple.php
I can modify its for your request (if need)
› Posted on July 7, 2009, 1:30 am
SummerBulb
12What 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
monika
13thanks 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
han33
16hello, 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
Mohamed Mansour
17Hello, 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
han33
19hello, 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

sssss
1ssssssasa
› Posted on April 6, 2008, 9:47 pm