I am Hack Sparrow
Captain of the Internets.

Web speed is slow but Torrent speed is fast – Solution!

HTTP / Web speed is slow but Torrent speed is fine on Windows Vista / 7

One morning you wake up to discover that your internet connection speed has fallen by 1/4 its original speed on your Windows machine. Websites are slow, YouTube is slow, all video sites are slow, everything is slow in general now. You begin to suspect it's a conspiracy by your ISP, or maybe your computer is infected with a super stealth virus, or maybe it is the goddamn antivirus which is sucking up your speed!

But then you notice something: the torrent download speed is still as good as it was before. The speed problem did not affect torrent and some other protocols, it is just the Web!

You are in luck! I will show you how to get your net speed back to where it was before or where it should be. It's all got to do with your system's  MTU setting.

First, open a command prompt with administrative powers: Windows > Search > 'cmd' > rightClick > Run as Administrator.

At the command prompt check the current MTU settings and retrieve other relevant information. Type the following at the command prompt:

> netsh interface ipv4 show subinterfaces

You should get something which looks like:

   MTU  MediaSenseState   Bytes In  Bytes Out  Interface
------ --------------- --------- --------- -------------
4294967295 1 0 18535911 Loopback
1500 1 6469930 761576 WAN

Make a note of the name of the second network interface. Mine's called "WAN", probably yours might be called "Local Area Connection".

In all probablity, that MTU value of 1500 is not the optimal value for your system. Let's find out what the optimal value is.

> ping www.google.com -f -l 1500

You should get this is response:

Pinging www.l.google.com [74.125.236.50] with 1500 bytes of data:
Reply from 192.168.1.2: Packet needs to be fragmented but DF set.

See that "Packet needs to be fragmented but DF set"? It shows that the MTU value of 1500 is not optimal for your system. Keep reducing the MTU value till you don't see the "Packet needs to be fragmented but DF set" message anymore:

> ping www.google.com -f -l 1465
Pinging www.l.google.com [74.125.236.50] with 1400 bytes of data:
Reply from 74.125.236.50: bytes=1400 time=138ms TTL=53

An MTU value of 1465 worked for me. Likewise, you find the perfect MTU value for your system. Don't get it too low, else you will end up slowing down your internet connection speed.

Once you get the perfect MTU value, it is time to set it on your system. Do it this way:

> netsh interface ipv4 set subinterface "WAN" mtu=1465 store=persistent

Don't blindly copy-paste that! The interface of your interest is probably called "Local Area Connection" or something like that, in which case, you do this:

> netsh interface ipv4 set subinterface "Local Area Connection" mtu=1465 store=persistent

Now go to http://www.speedtest.net and confirm your internet speed is back to normal and you are getting what you should be getting normally.

Please note this solution for fixing slow internet connection will work only for the condition: torrent and other protocols show expected speed but everything on the browser is slow.

Now that you have fixed your slow internet connection, enjoy this YouTube video!

Exercise

  1. What is MTU?
  2. Why does high MTU make your internet connection slow?
  3. Why is it not recommended to keep your MTU below 1400?
  4. How does low MTU cause slowness of internet connection?
  5. How do you change the MTU on Linux? Mac OS X?

References
  1. MTU

50 Responses to “Web speed is slow but Torrent speed is fast – Solution!”

  1. Jack says:

    Please help! This issue really is unbelievably annoying. I get full download speeds, my connection tests at 187mps on speedtest.net, but I’m getting 4% packet loss and 187 ping. So this sounds like a possible solution when nothing else has worked.

    BUT

    the name of my interface shows up as ???? and when I type “????” in the final command to set the MTU I get the error message that the file name is incorrect. What do I do?

    Also, I got a successful ping after switching down only to 1495, in case that will be of any importance.

  2. Sam says:

    Awesome bro !!

    It worked for me 😀

    Now I am getting both torrent and normal downloads at good speed. 😀

    Thanks a ton !!

  3. bebop says:

    i changed the mtu to 1465 after facing the same problem, it worked well all night, then when i switched on my computer again in the morning it was showing 1465 isn’t the proper mtu, n then the mtu with no comment” needs to be fragment” was obtained when i tested with 1437.

  4. salman says:

    it reduced the download speed for me instead and now I am regretting why I did this. Can you tell any solution about it now?

  5. Amin says:

    I followed your steps and i reached the value of 1464 that is when the “Packet needs to be fragmented but DF set” stopped appearing but when i tested the speed it went lower than before so i used the original value of 1500 it changed but everytime i refresh the web page and redo the test the speed changes ( up & down ) and the same happend for 1464

  6. M.F. says:

    Thank you so much! This worked for me

  7. Inteq says:

    Apply KB 2675785 from Microsoft to solve this issue.
    https://support.microsoft.com/en-us/hotfix/kbhotfix?kbnum=2675785&kbln=en-us
    Stop messing with netsh.

  8. John Pierre says:

    Because Torrent is shit SERIOUSLY FOR REAL AND ITS TRUE/RIGHT doesn’t download when the torrent get little bit old for example We Are at 10 Feburary 2016 and you want to download a torrent that is in 10 December or 10 November/October it downloads but at 40 FUCKING PERCENT OR 60 PERCENT IT FUCKING STUCKS AND SHITTER THAN THAT IT DOESN’T DOWNLOAD AT ALL SAYING ”DOWNLOADING 0.00%” ”CONNECTING TO FREAKING PEERS” AND REMANING IS 2~1 YEAR/2~1WEEK/2~1DAY 8 HOURS WTF SERIOUSLY?!? BUT IT ONLY DOWNLOADS IF ITS 2016 JANUARY & FEBRUARY FULLY SPEED WITH NO STUCK UPS!! LASTLY, IT BRINGS VIRUSES TO YOUR COMPUTER BETTER TO USE INTERNET BROWSER DOWNLOADING ITS BETTER,FASTER AND SAFER I SWEAR TO GOD FROM THE LAST IT NIGGAED WITH ME!! DOESN’T WORK ITS LIKE ITS USELESS I SWEAR TO GOD I TIRED EVERYTHING BUT ITS SHIT THE TORRENT IS TORRENT WHEN ITS SEEDERS AND ITS BEERS NUMBERS REDUCES UP ITS FINISHED UP AND FUCKED UP MAN WITH NO HOPE FUCK THIS SHIT MAN!!

  9. rof says:

    @John Pierre
    You’re doing it wrong.
    Calm down and maybe download torrents that are
    a) Well seeded
    b) trustworthy
    You just need to learn how bittorrent works.

  10. VA says:

    Everything worked pretty well for me until you need to put this: netsh interface ipv4 set subinterface “WAN” mtu=1465 store=persistent

    After i input that i got this: The requested operation requires elavation.

    What do i now?!!

Make a Comment