Windows Vista tcpip.sys Connection Limit Patch for Event ID 4226
Apparently in Windows Vista, Microsoft still enforce and hard-limit (hard coded in tcpip.sys) the maximum simultaneous half-open (incomplete) outbound TCP connection attempts per second that the system can make, as in Windows XP SP2, in order to protect the system from being used by malicious programs, such as viruses and worms, to spread to uninfected computers, or to launch distributed denial of service attack (DDoS). When the limit is hit, in Event Viewer, there will be such an entry:
EventID 4226: TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts
Unless Windows XP SP2 which has 10 maximum incomplete concurrent connection attempts limit per second, Windows Vista default limit is based on which edition of Vista users are using. For example, Home Basic has maximum limit of 2, and Vista Ultimate is 25 per second. Normal Windows Vista users should not face any problem or slow network connection with the half-open connections limit. However, heavy P2P (peer-to-peer) applications users such as uTorrent, BitTorrent, BitComet, Azureus, ABC, eMule (eDonkey network), etc, or P2PTV such as TVants, PPLive, PPStream, Sopcast, etc may face some error or slow download and upload speed due to this limit.
Due to enhanced security, to fix or crack the TCP concurrent connection limit in Vista is not as easy as in Windows XP. To remove maximum concurrent half-open connection limits in Windows Vista, apply the patched tcpip.sys with the following steps:
- Download patched tcpip.sys: Vista TCP/IP and UAC Auto Patcher (patched tcpip.sys is contained inside the archive)
64-bit tcpip.sys or 32-bit tcpip.sys. Alternative download link for 32-bit and 64-bit. - Open command prompt, and run the following 2 commands:
1. takeown /f c:\windows\system32\drivers\tcpip.sys
2. cacls c:\windows\system32\drivers\tcpip.sys /G “username”:FReplace username with the actual user name that used to log on to Windows Vista currently.
The second command can also used improved lcacls:
icacls c:\Windows\System32\drivers\tcpip.sys /grant “username”:f
- Disable the TCP/IP Auto-Tuning feature by running the following command in command prompt:
netsh int tcp set global autotuninglevel=disable
- For 64-bit Windows Vista (x64), the integrity checks need to be disabled as it need all drivers to be signed. So run the following command in DOS prompt:
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
Note: Above command no longer supported, and users require to press F8 on system startup to bypass driver signing integrity check.
- Replace the tcpip.sys in C:\windows\system32\drivers folder with the patched tcpip.sys downloaded from step 1 (remember the use the correct x64 or x86 version). Normally, this procedure can be done by simply login to Windows Vista with administrator account. However, if the process failed, reboot the computer and then press F8 to boot up in Safe Mode, and then copy and paste overwrite the tcpip.sys.
- Next, the maximum number of TCP half complete connection limits need to be set in registry. Open registry editor (regedit), and navigate to the following registry key:
HKEY_LOCALL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- Right click on the right pane, select “New”, then select “DWORD value”. Enter the new value name as “TcpNumConnections” (without quotes).
- 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 (another download link) 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).
- Restart computer.
New: Windows Vista Event ID 4226 Auto Patcher
Windows Vista Event ID 4226 Auto Patcher has been renamed as Vista tcpip.sys and UAC Auto Patcher, which now has more than 6 versions of auto patcher download links for different versions of tcpip.sys with the release of various hotfixes and SP1. Visit here for details.
New: Half-Open Limit Fix (Automated tcpip.sys Patch using Test Self-Signed Certificate)
Also Available – Driver Version: CrackTcpip.sys for Vista SP1 v.668 – a non-patching method to bypass TCP connection limit.
Also available is TCP/IP auto patcher for 64-bit (x64) Windows Vista SP1.
Gui Version: VistaTcpPath TCP Auto Patcher which works for Vista RTM (non-SP1) version of tcpip.sys.
Old Version:
Version 1.0
Version 1.2
Version 1.3
Version 1.4
Version 1.5
With thanks to YaronMaor for batch script.
The TCP connection limit which trigger Event ID 4226 has now increased to 500 (or any other value you set), and will likely fix the error for re-occurring again.
Related Articles
- Windows Half-Open Limit Fix (Patch) Free Download to Remove XP, Vista and Server 2003 (32 and 64-bit) TCP 4226 Connection Attempts Limit
- Windows XP SP2 TCP Connection Limit (Event ID 4226)
- Download Vista tcpip.sys and UAC Auto Patcher to Increase TCP Connection Limit
- Half-Open Outbound TCP Connections Limit Removed in Windows 7 and Vista SP2 (No Patch Required)
- Download TCP-Z V2.4 Build 20090108 to Patch tcpip.sys of Windows 7 (32-bit and 64-bit Support)
- CrackTcpip.sys Driver for Vista SP1 v.668 to Patch tcpip.sys 6.0.6001.17052
- TCP/IP Has Reached the Security Limit Imposed on the Number of Concurrent TCP Connect Attempts Error on Windows Vista
- Universal Tcpip.sys Patch Auto Patcher Free Download (V1.2 Build 20090409)
- VistaTcpPatch Windows Vista TCP Half Open Limit Auto Patcher GUI Version
- How to Enable Concurrent Half-Open TCP Connect Attempts Limit in Windows Server 2008 and Vista SP2 or Windows 7










































April 16th, 2008 08:16
[...] Info on XP & win2003…not confirmed if it works yet. Windows Vista tcpip.sys Connection Limit Patch for Event ID 4226 My Digital Life [...]
April 12th, 2008 03:20
For those interested in the latest on patching 64-bit SP1, check out the messages in this thread starting with till69’s post on April 5th. It’s looking very promising (I’m bjf2000 there).
http://forums.mydigitallife.info/showthread.php?t=1249
April 3rd, 2008 02:57
umm i cant copsy the patch, and now ive lost the whole of by desktop i just get a blue screen, what do i do?
April 3rd, 2008 01:01
No, it isn’t, even though I’ve had a request out for the new byte string for 64-bit SP1 for quite a while (last time I mentioned it was #262). Apparently, the only people who know how to find it are off planet.
But since you only have a few events and you’re not noticing the problem, I think you’re good as you are.
Plus, you avoid the annoyance of dealing with the unsigned driver nag every time you boot Windows, which is a problem for 32-bit and 64-bit SP1. If you don’t boot Windows that often (say, if you use standby instead) it wouldn’t be that annoying.
For those interested in an adventure, there is a way to get around it, and it’s what I use for 32-bit SP1, but it’s complex:
The Jan 31 and Feb 26 posts here give the specifics:
http://forums.microsoft.com/technet/showpost.aspx?postid=2012166&siteid=17&sb=0&d=1&at=7&ft=11&tf=0&pageid=3
April 2nd, 2008 23:45
OK Rick Found it: yes, your right, got some 4226 events….
By reading post i suppose there isn´t a patched tcpip.sys available for vista x64 SP1?
April 2nd, 2008 23:40
Uh Rick, sorry for the very basic question: how do I see the system log?
April 2nd, 2008 23:13
ElQuia, that’s hard to say. Are 4226 errors that common in your System Log? If not, then what you’re doing cumulatively on that system is staying mostly within the bounds of the default number of concurrent TCP connect attempts, and you’re not going to notice much of anything. It would probably get noticeably worse the more bandwidth you had and the more you tried to do simultaneously on the system.
The Limewire FAQ mentions a scenario in which the default limit can lead to being disconnected from their network. They mention these three things that may help (you may already be doing these, helping you out of the box):
-Disable Ultrapeer Capabilities in Tools > Options > Speed
-Minimize the number of simultaneous downloads (can also be found in Options > Downloads)
-Minimize the number of other internet programs used alongside LimeWire
April 2nd, 2008 21:48
Hello everyone. I´ve been following this thread since some months. I´m CUIRIOUS: I use Limewire on vista x64 sp1. I DONT have a patched tcpip.sys (it´s not available), but for me limewire works very fast, if i do multimple donwnloads at the same time, it uses all my available spped (cable 1mb = 128 Kbps).
Not than I´m complaining, but WHY dont I have the trouble everyone else seems to have????
Best to Rick & all you guys.
April 2nd, 2008 18:39
Hi, I updated my vista x64 to sp1 and now my bit torrent isn’t work properly. It looks like there isn’t a solution for the problem yet so meanwhile I will have to use my xp2 computer for downloads. I’ll be eagerly waiting for the new patch!
April 1st, 2008 10:28
frustrated, when you upgraded your SP1, your tcpip.sys would have been replaced. How it doesn’t show a version number for you is baffling, but I saw something on XP once just like that, and I chalked it up to an Explorer issue. It’s beyond the scope of this thread in any case and unrelated to the patch.
As you found, you cannot use the older version in SP1. If you’re on 32-bit SP1, download v2.0 from here:
http://www.mydigitallife.info/2008/02/17/download-vista-tcpipsys-and-uac-auto-patcher-to-increase-tcp-connection-limit/
There is no patch for 64-bit yet.
April 1st, 2008 08:39
Hi
I am hoping someone will know an answer. I managed to patch my tcpip.sys file a few weeks back, and was running smoothly. I decided to install Vista SP1 and everything seemed to be OK. A couple of days ago I had a BSOD crash, my first. I noticed today thay my tcpip.sys had been changed. However, there is no version information.
I tried using the older tcpip.sys file which worked previously, but that completely killed my machine.
I still have no version number for tcpip.sys and for most of the other files in c:\windows\system32\drivers
March 19th, 2008 22:54
David, see #251.
March 19th, 2008 22:34
Hey all,
Can anyone help me with this snag I’m running into? The autopatch doesn’t seem to work with my 6.0.6000.16627 tcpip version. I tried to run a search for the KB946456 and came up with a windows update, which I downloaded and it said that it wasn’t needed in my system, so it doesn’t work. utorrent is so slow on vista, i think this patch may help if i can get it to work. Thanks.
- David
March 18th, 2008 23:24
airless, not that I’ve seen. The problem is that the byte pattern found in all previous 64-bit versions is no more in 64-bit SP1, and that’s a fundamental problem. Until that’s known, nothing can be done. If anyone knows of a place on the Internets where that new pattern is revealed, or a place which even shows how to go about finding it yourself (debugger?), please chime in.
March 18th, 2008 23:10
any information on the possibility of patched tcpip.sys being made available here for Vista x64 SP1 (with tcpip.sys version 6.0.60001.18000)?
March 17th, 2008 15:45
thank you! the patch worked beautifully. now i can finally bear with vista ;D
March 17th, 2008 00:21
thanks for the reply rick. Yes, i only see it when booting, it doesn’t happen anytime else….
o well, since the event doesn’t do much to my internet connection, I’ll just leave it there.
Thanks once again!
March 15th, 2008 02:35
Peter, so you see it when booting, as opposed to anytime else?
(For those wanting to catch-up, start reading from post #236.)
You can filter your Event Viewer on 4227 to get a good look at how long it’s been happening. For me, it’s been almost 6 months now since I last saw it (and I also saw it happen before patching), so it’s difficult to tie this to the patch alone. It could relate to the router, for example. Like many other (most?) messages in Event Viewer, I doubt it amounts to anything.
March 15th, 2008 02:17
hello..
I noticed every time i turn on my computer, the event id 4227 appear in the event log.
I dont really know did this happen before or after the patch(1.9c),and my internet connection seems fine. im using vista Ultimate(no sp1) and I’m using wireless g usb adapter. my router is 2wire2701 hg-g.
I also had read the previous reply and I’m just wondering,what event 4227 does to my internet connection?
March 11th, 2008 05:06
Yes I know and to be honest I have no Idea what happened! If I dont use f8 I get to windows but no internet! if I use it it works!
I use a Vlite version of the Vista! and I disable a lot of unused services, maybe that is why
March 11th, 2008 04:32
ZeroHart, that’s confusing, since if you didn’t use F8, you shouldn’t have been able to get into Windows at all, right? Because an updated 64-bit Vista (and Vista 32-bit SP1, too) requires that you use F8 to disable signed driver checking with each boot.
March 11th, 2008 04:24
Actually I found out what happened! I did not do the f8 thing in the reboot!! now works perfectly just have to remember to do the f8 thing everytime i reboot
Thanks!
March 11th, 2008 02:26
ZeroHart, as might have happened to a couple people before you, I suspect that whatever security program(s) you use has taken upon itself to halt communications due to a foreign driver being injected into the system. See if you can tell it otherwise.
March 11th, 2008 01:49
Hello I just applied patch 1.9d in my v20752 tcpip.sys from my Vista Ultimate x64 and I am getting this error with no connection
“the dependency service or group failed to start”
and
“failed to read firewll configuration”
can you help me please
March 10th, 2008 12:20
Semp, that phrasing telling you that 1 file was installed and 0 failed means just that: success for that particular command. It’s not an error message.
You only need to press F8 if you’re on SP1 or using 64-bit.
KB946456 is a security update for TCP/IP and not related to performance, but since it’s a replacement of your tcpip.sys, you’d want to install it *before* patching. The only way it shouldn’t apply to your system is if you’re on SP1, which you can’t be. It’s also possible that that update was installed previously via Automatic Updates. You didn’t mention what version of tcpip.sys you’re on, so there’s no way of knowing.
As you probably know, there are numerous things that contribute to torrent speed, and half-opens are but one of them. Speeds are almost entirely unpredictable. Half-opens are not a silver bullet and it’s likely the problem lies elsewhere (if it’s even a problem and not just a slow torrent).
Still, you want to be sure that the patch actually did install. Look in your \windows\system32\drivers directory to see if the tcpip.sys there is the one from the ZIP file you downloaded. If it is, and assuming that the rest of the batch file executed (importantly, the modification of the Registry), then you know the speed has nothing to do with half-open connections (well, assuming your torrent client is configured for a sufficient number of half-opens).