Optimize Vista for BitTorrent, eMule, P2PTV
Written by enigmax on April 09, 2007Expert file-sharers are well aware that XP SP2 limits incomplete connection attempts, potentially slowing down transfers. This situation has been addressed with various patches on XP but until now, users of Windows Vista would experience similar problems. Follow this guide to remove the limits and reduce potential bottle-necks.

After installing Service Pack 2 on a Windows XP machine a limit was introduced to stop many TCP connection attempts on the host machine. This well-intentioned modification came as an attempt by Microsoft to limit the speed at which malicious worms (such as the infamous ‘Blaster’) could spread.
However, for software that relies on many connections such as BitTorrent, eMule and P2P TV applications, this limit has the potential to cause slowdowns in certain situations. This ‘feature’ of XP SP2 introduced by Microsoft and disliked by some file-sharers was dealt with by the useful patch available from LvlLord.
With the arrival of Windows Vista, the potential problems arising from the limits put on half-open connections are back. While Vista Ultimate offers a limit of 25 half-open connections per second, the Home Basic version offers just 2, but thanks to this great tutorial a solution is now available.
1. Download patched tcpip.sys: 64-bit tcpip.sys or 32-bit tcpip.sys.
2. Open command prompt, and run the following 2 commands:
takeown /f c:\windows\system32\drivers\tcpip.sys
cacls c:\windows\system32\drivers\tcpip.sys /G "username":F
Replace username with the actual user name that is currently being used to log on.
3. Disable the TCP/IP Auto-Tuning feature by running the following command in command prompt:
netsh int tcp set global autotuninglevel=disable
4. For 64-bit Windows Vista (x64), the integrity checks need to be disabled as it needs all drivers to be signed. So run the following command in DOS prompt:
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
5. Replace the tcpip.sys in C:\windows\system32\drivers folder with the patched tcpip.sys downloaded during step 1 (remember to use the correct x64 or x86 version. Normally this procedure can be done by simply logging into Windows Vista with an administrator account. However, if the process fails, reboot the computer and then press F8 to boot up in Safe Mode, and then copy and paste to overwrite the tcpip.sys.
6. Next, the maximum number of TCP half complete connection limit needs to be set in the registry. Open registry editor (regedit), and navigate to the following registry key:
HKEY_LOCALL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
7. Right click on the right pane, select “New”, then select “DWORD value”. Enter the new value name as “TcpNumConnections” (without quotes).
8. Double click on TcpNumConnections registry value, and modify the value data to the desired maximum TCP/IP connection limit that you want to allow, in decimal value. For example, enter 500 as the value data for TcpNumConnections. You can use any limit that you prefer. Alternatively, download this registry registration file that when executed, will set the TCP simultaneous connection limit to 16777214 (you can always modify the value in the file or in the registry after applied).
9. Restart computer.
Good Luck!
Read more on optimizing your BitTorrent Speed.
Previously: ShareMonkey Helps People Buy Their Pirated Content
Next: Automate Your BitTorrent TV Downloads on OS X





56 Responses
Pages: [1] 2 3 » Show All
What about the EVidpatch thingy will that be updated for Vista in the future??
That will make your internet connection slower.
A big thanks to serrebi101 who has created a batchfile “to do all the commandline stuff for you and apply the needed registry values. Just extract, run as administrator”
http://www.pirateshare.net/?id=4387284
The patch for XP didn’t speed up downloads. Is there any serious benchmark for Vista? Half-opened connections aren’t much used by BitTorrent as far as I know.
The Original AutoPatch is here http://securevista.blogspot.com/2007/04/vista-tcpip-limit-patch.html
bnoise: Half-opened connections are when you try connecting to someone and they haven’t accepted or rejected the connection - it’s just waiting on a response. You’ll connect to more people a lot faster if you can try connecting to 100 people at once compared to 10. Although it doesn’t directly increase your download speed, it means you can connect to more peers more quickly, and that can (unless something else is screwed up) increase your download speed.
I followed these instructions and ended up with a max download of 10 kb/s. Not very satisfying :(
Followed the instructions. The first speed test I did after this was my fastest! It might have worked.. Downloads with Utorrent are quite good, but didn’t change much. I guess i kinda works.. at least there’s no harm:).
Oh and btw to replace the tcpip.sys, just right click on the “drivers” folder, go to security, and give yourself ‘full control’
followed instructions to the letter (x64) — utorrent is now pulling down roughly 600kB/s — within seconds of starting the torrents.
:D
in the registry director i get two
TcpNumConnections, one i created according to step 7 and one created by the file i downloaded in step 8. which is the one to be modified?
works fine, but any additional problems will be with your router. what worked for me (netopia 2247NWG-VGx) was enabling static NAT, something that wasn’t mentioned on portforward.com. And it doesn’t slow down your connection as such, but most of your bandwidth will be eaten up by torrents so any other usage will prob be affected.
This shit didn’t work for me. i followed it exactly twice and afterwards couldn’t boot into windows after reboot.
I also couldn’t boot into Vista after doing this. I had to go in through safe mode and revert back to the original tcpip.sys file.
Well, did exactly as it said, and my network adapter stopped working…:S…got error that network service hasn’t started. any1 got same problem??
ps.. got vista bussines x64
pss. if any1 knows where 2 get original tcpip.sys, i’d apreciate alot
tnx
No matter what I do, I’m not able to replace the tcpip.sys file in Vista Ultimate due to permission problems. I’ve even logged into the Administrator account but I got nothin.
hi,
KB938194
KB938979
these two Patches from microsoft are the reason why patched tcpip.sys has stopped.
i can e-mail whoever the origional tcpip.sys.
Unlike most of you i actually made a backup. My e-mail is joshnewzealand’at’gmail.com
[quote comment="149959"]No matter what I do, I’m not able to replace the tcpip.sys file in Vista Ultimate due to permission problems. I’ve even logged into the Administrator account but I got nothin.[/quote]
First turn off user account control. Under User Accounts and Family Safety -> User Accounts –> Turn User Account Control on or off.
Vista won’t even connect to the internet after doing this. I’ve booted in xp to connect. i have put the original file back into the drivers folder, but still i get no connection. I cant even access my router.. :(
There is no chance at moment to use the patched tcpip.sys if you have installed patches KB938194 and KB938979. You need strictly remove this patches to run patched tcpip.sys.
no other way at moment
ah ok then, i’ll go and remove these updates and see! :D
I just checked in vista..and I dont even have those updates!
So what the hell has stopped my connection from even reaching my router? :(
3 references to this post
Pages: [1] 2 3 » Show All
Responses are closed
All remaining responses will continue to be archived. Use the TorrentFreak forums if you want to discuss something.