views:

23089

answers:

15

Is there a Firefox plugin available that will simulate various connection speeds (especially when testing from http://localhost)?

I know there are standalone applications to do it, but I'd rather have a plugin.

Thanks

Edit: Thanks to @UselessAdmin - FirefoxThrottle has now been updated to work on localhost!

+108  A: 

Firefox Throttle Now works on localhost

"Firefox Throttle is a small plug-in for your favorite Web Browser, that allows you to cap download/upload rates and monitor current bandwidth utilization. "

Internet Explorer Throttle (As of 2010/02/23, still doesn't work for localhost)

"IE Throttle is a small plug-in for your Microsoft Internet Explorer, that allows you to cap download/upload rates."

Jonathan Sampson
The Mozilla homepage for the addon is at:https://addons.mozilla.org/en-US/firefox/addon/5917
TravisO
@TravisO - I just thought to use that link instead too. Thank you for the suggestion though.
Jonathan Sampson
Hmm I can't get it to work... I've unchecked "automatically exclude all local networks" but it's still not throttling localhost (internet sites are throttled OK though)
Greg
Read the mozilla.org comments and it seems it doesn't work on localhost :(
Greg
@RoBorg, perhaps you should consider throttling with your local installation of Apache?
Jonathan Sampson
Wouldn't that involve restarting apache every time I wanted to toggle the throttle on/off? I really want something faster than that. If that plugin worked for localhost it would be perfect - single click to toggle...
Greg
@RoBorg, I agree. A plugin for localhost would be awesome, but if it doesn't exist, Apache might be the way to go.I'll continue looking though, as this would benefit me too.
Jonathan Sampson
@RoBorg - Could you setup multiple virtual hosts with Apache, and specific throttles for each? http://localhost/, http://localhost_56k/, http://localhost_DSL/ etc? And point them all to the same directory?
Jonathan Sampson
@Jonathan Sampson - I have about 15 virtual hosts already - setting up different speeds for each one would be a pain, but not impossible.
Greg
@RoBorg - It was just an idea. I think I might give that route a shot myself. I currently only have a couple. I will continue to look for a more simple solution, and I'll post back here when/if I find it.
Jonathan Sampson
@Jonathan Sampson Cool, thanks.
Greg
:( - Firefox Throttle doesn't work on Linux!
a_m0d
This solution is not quite accurate. It will simulate limited bandwidth, but it does not simulate latency. Very small requests will still be responded without delay.
Adrian Grigore
The add-in seems to be removed from the Mozilla site. At the time of writing it's still available from the Mozilla ftp site: ftp://ftp.mozilla.org/pub/mozilla.org/addons/5917/firefox_throttle-1.1.6-fx-win.xpi
Zidad
+48  A: 

For several *NIX distros there are packages called 'iprelay'.

Debian

For example Debian you could do the following:

$ iprelay -b2500 8000:localhost:80
# Point browser at http://localhost:8000

and you can see your website creations as a poor modem user would...

Ubuntu

or a link for an Ubuntu package: http://manpages.ubuntu.com/manpages/gutsy/en/man1/iprelay.1.html

Windows

Another tool which works on Windows: Internet Speed Simulator

tharkun
The question stated, "I know there are standalone applications to do it, but I'd rather have a plugin."...
Nik Reiman
it might help someone else, stackoverflow is a wiki after all.
tharkun
iprelay works great. Thank you very much.
pi
Website for ip_replay: http://www.stewart.com.au/ip_relay/.
MitMaro
tc - traffic control is also a handy and powerful alternative. In http://www.kdedevelopers.org/node/1878 you can see how to put latency on a loopback device.
Mark Raddatz
+6  A: 

I think you would be better off by using a purpose built proxy as it would work in all browsers and/or any other applications. So I think you should have a look at Sloppy.

Basically, all you need to do is launch Sloppy, enter the address of your site and then it will open it in your default browser and simulate a dial-up speed. As a plus side, it's written in Java so it would work on Mac or Linux as well.

DrJokepu
+5  A: 

Use NetLimiter to limit your internet bandwidth upload/download per program.

Simply checkmark the Incoming/Outgoing limit checkbox next to Firefox, type in a speed limit in the current units (Kbits/KB per sec/kbits per sec).

Firefox's connection speed is limited to your setting so you can simulate slow download speeds, etc!

Jenko
+4  A: 

Adding to DrJokepu's answer, set up Sloppy (or a similar proxy) then use the FoxyProxy plugin for firefox, which supports sending particular addresses through particular proxies, as well as easy toggling if you don't want to use them at all.

phloopy
Hehe, Sloppy... Lol.
Jonathan C Dickinson
A: 

There could be a way to trick the plugins mentioned in @Jonathan Sampson's answer to do throttling also for your local server.

If you have a high-speed connection and you're behind a modem/router that you are willing to configure (one time set up):

  1. Add an entry in your hosts file to point localhost to your external IP (that hopefully doesn't change much). You mentioned that you're using virtual hosts. You should add them as well.
  2. In your router, map external accesses to port 80 (or whatever) to port 80 of your local machine.
  3. Hopefully, the plugin won't think that the server you're trying to access is on a local IP and therefore won't throttle the connection.

Assuming your external IP doesn't chance all the time (especially if you're in an office with a dedicated line), this solution will help you to use those plugins, with a one-time or one-in-a-while setup in your modem/router.

Ates Goral
+16  A: 

The "Charles Web Debugging Proxy" has no problem throttling localhost. It works on windows, mac and linux. The trial version is fully functional and a licence costs only $50. I highly recommend it.

http://www.charlesproxy.com/download.php

Kristof Neirynck
+14  A: 

The solution I use is a combination of FireFox throttle and Sloppy

  1. Install FireFoxThrottle. This will display the speed in the FireFox status bar.

  2. Now in firefox go to the address you want to throttle and get the EXACT URL.

    • Alot of websites have redirects which can throw sloppy off.
    • Go to the start page for the site you want to throttle.
    • Copy the exact URL into the windows clipboard. The exact URL will include the http:// and the www parts if they are part of the URL,

example: I'm in Canada so if I type "google.com" in the FireFox URL it actually takes me to http://www.google.ca/

  1. Start Sloppy (it is a java webstart) so just double click the sloppy.jnlp file

  2. Now paste the URL into sloppy (i.e. Paste the entire "http://www.google.ca/" string).

  3. Firefox will take you to http://127.0.0.1:7569/ which is a throttled version of the site.

  4. FireFox Throttle will display in the FireFox status bar the speeds you are getting.

bike-fan
A: 

Get your cable modem from Time Warner, and you won't have to simulate a slow connection, it will just happen.

Paul Tomblin
Funny, but not ultimately helpful.
Kibbee
Yeah, but since there are plenty of great answers that haven't been accepted, I figured it couldn't hurt.
Paul Tomblin
None of the answers do what the question is asking for, unfortunately...
Greg
I thought bike-fan's or AndrewDotHary's answers would do exactly what you want.
Paul Tomblin
They both involve extra applications - I'd really like just a plugin. That's looking increasingly unlikely to happen though.
Greg
@RoBorg - you can't always get what you want, but if you try sometimes, you just might find, you get what you need.
Paul Tomblin
+13  A: 

Fiddler can similulate slow modem connections:

Here's how to modify the delays in the request and response.

Here's how to use Fiddler with Localhost.

AndrewDotHay
+2  A: 

Perhaps what you actually need is the YSlow addon for FireBug?

slf
A: 

You might be able to use the DelayPools feature from Squid proxy.

Another possibility is the bandwidth throttle feature from Charles Proxy. Charles Proxy includes an Add-On for Firefox which will automatically configure the proxy settings.

Otherside
+6  A: 

Due to overwhelming popular demand Firefox Throttle has been updated, it can now throttle localhost connections.

UselessAdmin
Excellent news! I'll try it out ASAP
Greg
A: 

Run a proxy server, config firefox to use the proxy server, and control the bandwidth on the proxy server.

+2  A: 

Here's an easy and configurable non-proxy solution for Mac users that works across browsers. It installs as a preference pane.

speedlimit home page

PCheese