Simulate a slow internet connection on a local host

iam, using C #, asp.net and iis, I want to simulate a slow internet connection on my computer to test my application.

Is it possible that I can control iis bandwidth.

please do not offer

System.Threading.Thread.Sleep(someDuration); 

in a C # file.

+7
c # iis
source share
5 answers

You can run Fiddler and use its throttling to simulate a slow connection.

Note that you will need to navigate to your computer name, not localhost . ( localhost. should also work)

+15
source share

Fiddler will do this for you.

+4
source share

You can find or create a proxy server that provides customizable speeds and customizable speeds. The proxy server will receive a request from the client, make a request to the server, receive a response, then slowly send the response to the client. (He probably uses some sort of Thread.Sleep (x) between sending each byte of the response to the client.)

0
source share

After a little search on the Internet, I did not find freeware / FOSS on win32 that does the job for arbitrary ports.

I have a server under testing that listens on port 13000 and a test client that has a custom send port. Many Internet-only tools turn the throttling tunnel from port 80 into something customizable, but my server will never listen to port 80.

Does anyone know something like the unix 'tc' command?

0
source share

This is not related to C #, but I would recommend slowing down the system network (or the vm network ..), it will be much easier to play. On linux we can use tc .

sudo tc qdisc add dev wlp3s0 root netem delay 500ms

To disable it:

sudo tc qdisc del dev wlp3s0 root netem

Source: http://jvns.ca/blog/2017/04/01/slow-down-your-internet-with-tc/

https://linux.die.net/man/8/tc

0
source share

All Articles