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:

  1. 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.
  2. 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”:F

    Replace 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

  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 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.

  5. 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.
  6. 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

  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 (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).
  9. Restart computer.

New: Windows Vista Event ID 4226 Auto Patcher

Latest Version: 2.0

Windows Vista Event ID 4226 Auto Patcher has been renamed as Vista tcpip.sys and UAC Auto Patcher, which now has 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.

Driver Version: CrackTcpip.sys for Vista SP1 v.668 - a non-patching method to bypass TCP connection limit.

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.

MDL blog postings now continue at Tip and Trick, and readers are welcome to join My Digital Life Forums.


284 Responses to “Windows Vista tcpip.sys Connection Limit Patch for Event ID 4226”

Pages: « 12 11 10 [9] 8 7 6 5 4 3 21 » Show All

  1. Andy
    February 16th, 2008 00:34
    225

    For those who can’t wait: I’ve uploaded a modified version of the patch here. It works fine for Vista tcpip.sys v6.0.6000.20752.

    Have fun :)

  2. Andy
    February 16th, 2008 00:33
    224

    For those who can’t wait: I’ve uploaded a modiefied version of the patch . It works fine for Vista tcpip.sys v6.0.6000.20752.

    Have fun :)

  3. Andy
    February 16th, 2008 00:17
    223

    According to Ricks How-To I’ve successfully patched the tcpip.sys v6.0.6000.20752. It works great - no event id 4226!

    Thanks so far!

  4. Rick
    February 15th, 2008 23:18
    222

    @swashbuckle: No

  5. swashbuckle
    February 15th, 2008 09:55
    221

    thanks rick,

    btw have u received v20752 tcpip.sys which I sent?

  6. Rick
    February 15th, 2008 07:00
    220

    (cont’d)
    Though I doubt that most people saw any of those problems in Vista with autotuning on, which after all, is the default. Particularly in SP1, with its 500+ fixes, I have serious doubts about the popular advice to disable autotuning, especially since the entire point of the feature is to maximize network performance. Disabling it may be urban legend at this point outside particular issues. It should be noted that as of last September at least, MS did have a general issue relating to it still in their KB:
    h**p://support.microsoft.com/kb/940266/en-us

  7. Rick
    February 15th, 2008 06:59
    219

    (cont’d)
    I think the whole “disable autotuning” thing got started not because of anything to do with this patch exactly, but rather this (and notably the “previously” article linked inside):
    h**p://w*w.mydigitallife.info/2007/05/24/increase-multithread-download-speed-by-disable-vista-auto-tuning-on-tcpip
    (cont’d)

  8. Rick
    February 15th, 2008 06:57
    218

    @swashbuckle, great question. I don’t know for sure, and I think it might vary from person to person. I’d invite anyone to try enabling it again to see how it goes.

    First, take a look at comments #34, #38, #39. That’s one case where it did make a difference, though it was complicated by using the packet-capture tool WinPCap (most don’t run anything like that).
    (cont’d)

  9. Installare Emule funzionante con Windows Vista come S.O. « La Tartaruga Tecnologica
    February 15th, 2008 04:44
    217

    [...] particolare in quale cartella va installato emule e una patch da scaricare per modificare il limite delle connessioni [...]

  10. Rick
    February 15th, 2008 02:52
    216

    Test. Either there’s a problem with the comment system, or there’s a pretty low limit on comment length.

  11. swashbuckle
    February 14th, 2008 16:58
    215

    can i leave auto-tuning on after removing the tcp/ip limit?

    will it have negative effects on the tcp/ip stack performance

  12. YaronMaor
    February 14th, 2008 14:09
    214

    Hi All,

    just published v1.9c for KB946456
    with driver build v16627(32bit Only).
    find it at: http://www.yaronmaor.net under the Repair section.

    Cheers,
    YaronM

  13. Rick
    February 14th, 2008 12:39
    213

    @swashbuckle, send it here if you haven’t already (same for anyone with 16627):
    info at yaronmaor dot net

    It should be out soon after.

    Autotuning is automatically disabled by this line in the batch file:
    netsh int tcp set global autotuninglevel=disable

  14. swashbuckle
    February 14th, 2008 12:31
    212

    to rick->

    btw, do I have to disable auto-tuning after patching?

  15. swashbuckle
    February 14th, 2008 12:30
    211

    I need a fix for v20752.

    Any idea when its coming out Rick?

  16. R32
    February 14th, 2008 05:41
    210

    That’s the diff for tcpip.sys 6000.16627 (x86) from yesterday’s update …
    Have fun!

    00000140: 7F A9
    00000141: 7A 91
    0003F4B9: 0F 90
    0003F4BA: 87 90
    0003F4BB: 8B 90
    0003F4BC: 00 90
    0003F4BD: 00 90
    0003F4BE: 00 90

  17. Windows Vista - Page 140 - Computer Games Forum
    February 14th, 2008 05:04
    209

    [...] Asta ajuta? __________________ ABIT IP35 | C2D E6750 @3.2Ghz w/Scythe ANDY SAMURAI MASTER cooler | 2x 2GB kit Corsair TWIN2X2048-6400C4DHX @2.1V 4-4-4-12 | BFG 8800GT OC2 (675/1674/1950) | Creative SoundBlaster Audigy Platinum | Western Digital Raptor WD360ADFD | Western Digital WD5000AAKS 500GB | Plextor PX-755A | TEAC W540E | Enermax EG365AX-VE(G) FMA | Antec P150 w/2x Zalman ZM-F2 & 1x Antec Tricool 120 DBB | Linksys WRT54GL v1.1 w/ DD-WRT v24 RC-6a | Altec Lansing ATP5 | Samsung SyncMaster 940BW | Saitek Eclipse II [...]

  18. Rick
    February 14th, 2008 00:57
    208

    Same email request (see previous post) to anyone with:
    6.0.6000.20752

    Unfortunately, just like with last month’s TCP update, MS08-004 is one of those which can result in either of two different TCP versions.

  19. Rick
    February 14th, 2008 00:15
    207

    @maxin/R32, please email a copy of the file to:
    info at yaronmaor dot net

    I’m a little surprised that MS had to release another TCPIP update, since they just released one last month. BTW, SP1 is not affected byt the update, but since it’s not “officially” out yet (though incredibly easy to get anyway), I guess many people will still need this one.

    @Nuno: Put this into the search box:
    %systemroot%\system32\drivers

    Now located tcpip.sys and examine its Properties by right-clicking it.

  20. maxin
    February 13th, 2008 22:50
    206

    Hi
    need a patch for tcpip.sys 6000.16627 (x86), thanks.

  21. Nuno
    February 13th, 2008 20:28
    205

    Hi

    Can anyone tell me how can i see what version i have of tcpip.sys?

  22. R32
    February 13th, 2008 19:55
    204

    Does anyone need a patch for tcpip.sys 6000.16627 (x86)?

  23. ElQuia
    February 12th, 2008 00:25
    203

    Uh Oh!. Well I guess us non programmers will have to wait till someone with more knowledge than us comes up with a solution … I very like the idea of a system driver like cracktcpip.sys … IF it worked on x64. Well thanks anyway!!!!

  24. Rick
    February 11th, 2008 23:39
    202

    ElQuia, it’ll happen eventually, no question. Here’s the problem: In SP1 x64, as opposed to any other release, the byte pattern that needs replacing has changed. And I’m afraid that I have no idea whatsoever how to go about finding the new pattern. It’s going to take either the person who found the original pattern in the old RTM release to come forward, or someone just as knowledgeable. I’m guessing that it was found with a debugger but don’t know.

  25. ElQuia
    February 11th, 2008 21:41
    201

    Rick: Hello. I´ve just (yesterday) installed Service Pack 1 (RTM 6.0.6001.18000) on Vista 64 bits (x64). There´s a note in the CrackTcpip.sys patch that says that it won´t work on x64. Any Chance of a patched tcpip.sys for x64 build 18000??. Please?
    Best.

Pages: « 12 11 10 [9] 8 7 6 5 4 3 21 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting



Incoming Search Terms for the Article

vista 4226 - 4226 vista - vista tcpip patch - Event ID 4226 vista - vista tcp patch - tcpip.sys patch vista - vista TCPIP.SYS patch - tcpip.sys - vista connections patch - vista connection limit - vista max connections - tcpip vista - vista maximum connections - 4226 - vista tcp/ip patch - vista tcp ip patch - 9318 - event 4226 vista - vista tcpip.sys - vista 4226 patch - tcp patch vista - vista connection limit patch - tcpip patch vista - vista event 4226 - tcpip - tcpip.sys vista - VISTA P2P PATCH - 4226 patch vista - maximum connections vista - vista max tcp connections - Windows Vista Event ID 4226 Auto Patcher - 32-bit tcpip.sys - Windows Vista tcpip.sys Connection Limit Patch for Event ID 4226 - TCPIP 4226 Vista - vista half open connections - vista tcp hack - max connections vista - tcpip.sys patch - vista event id 4226 - vista concurrent connections - tcpip.sys patch for vista - max tcp connections vista - error 4226 vista - vista connection patch - vista tcpip - vista tcpip hack - Hack the max TCP connections Vista - half open connections vista - event id 4226 - Vista EventID 4226 Auto Patcher - TCP vista patch - unable to get tcpip.sys permission - vista error 4226 - eventid 4226 vista - tcpip patch - windows vista connection limit - vista maximum tcp connections - Windows Vista Connection Limit Patch for Event ID 4226 - windows vista tcpip patch - tcp ip hack for vista - vista max half open - tcpip.sys vista patch - all - vista tcpip 4226 - tcpip.sys 6.0.6000.16386 - windows vista tcpip.sys - Vista Event ID 4226 AutoPatcher - 32-bit tcpip.sys. - 4226 patch for vista - vista tcp/ip and uac autopatcher 6.0 - tcp - windows vista event id 4226 autopatcher - vista p2p fix - tcpip vista patch - tcp patch for vista -