Limiting Network Bandwidth Programmatically using C#

1.5k views Asked by At

I'm developing an application in C# to find Number of users accessing my router (This part is Done) Now for the no.of users i need to split the total n/w bandwidth among each users locally such that

UserBandwidth = (OverallAllBandWidth / NumberOfCurrentUsers)

Now I need a methodology to limit bandwidth as per no.of users in C# Win Form

I referred these links http://www.codeproject.com/KB/IP/Bandwidth_throttling.aspx

but all these helps to limit on certain application.

My requirement is such that to apply limitation to NIC itself.

For Eg:

My N/W B/W is 1MBps currently 2 users are using in the N/W

then my code should limit 500KBps for each users through my App locally.

0

There are 0 answers