When you try to connect from TCP ports greater than 5000 you receive the error 'WSAENOBUFS (10055)' (196271)
The information in this article applies to:
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, Standard Edition
- Microsoft Windows Server 2003, Enterprise Edition
- Microsoft Windows Server 2003, Standard x64 Edition
- Microsoft Windows Server 2003, Enterprise x64 Edition
- Microsoft Windows Server 2003, Datacenter x64 Edition
- Microsoft Windows XP Tablet PC Edition
- Microsoft Windows XP Media Center Edition
- Microsoft Windows XP Professional
- Microsoft Windows XP Home Edition
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
This article was previously published under Q196271 Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows registry SYMPTOMS
If you try to set up TCP connections from ports that are greater than 5000, the local
computer responds with the following WSAENOBUFS (10055) error message:
An operation on a socket could not be performed because the system
lacked sufficient buffer space or because a queue was full.
RESOLUTIONWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
The default maximum number of ephemeral TCP ports is 5000 in the products that are included in the 'Applies to' section. A new parameter has been added in these products. To increase the maximum number of ephemeral ports, follow these steps:
- Start Registry Editor.
- Locate the following subkey in the registry, and then click Parameters:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - On the Edit menu, click New, and then add the following registry
entry:
Value Name: MaxUserPort Value Type: DWORD Value data: 65534 Valid Range: 5000-65534 (decimal) Default: 0x1388 (5000 decimal) Description: This parameter controls the maximum port number that is used when
a program requests any available user port from the system.
Typically , ephemeral (short-lived) ports are allocated between
the values of 1024 and 5000 inclusive.
- Quit Registry Editor.
Note An additional TCPTimedWaitDelay registry parameter determines
how long a closed port waits until the closed port can be reused.
Modification Type: | Minor | Last Reviewed: | 12/21/2005 |
---|
Keywords: | kbnetwork kbprb KB196271 kbAudITPRO |
---|
|