socket 생성 갯수 제한을 풀어주는 레지 수정법
다른 부분은 볼 거 없고...
밑에 박스처리 해놓은 곳만 보고 따라하면 된다.
물론 수정 전에 레지 백업은 필수!!!

http://support.microsoft.com/default.aspx?scid=kb;en-us;196271

Unable to Connect from TCP Ports Above 5000
View products that this article applies to.
Article ID : 196271
Last Review : April 19, 2004
Revision : 4.0
This article was previously published under Q196271
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/EN-US/) Description of the Microsoft Windows Registry
SYMPTOMS
When you attempt to set up TCP connections from ports above 5000, the local computer responds with a WSAENOBUFS (10055) error, which means:


An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
RESOLUTION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

The default maximum number of ephemeral TCP ports for Microsoft Windows NT is 5000. A new parameter has been added to Windows NT 3.51 Service Pack 5 and to Windows NT 4.0 or higher. To increase the maximum number of ephemeral ports you must set the following registry parameter:

여기만 보면 된다 :)
1. Start Registry Editor (Regedt32.exe).
2. Locate the following key in the registry:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
3. On the Edit menu, click Add Value, and then add the following registry value:
Value Name: MaxUserPort Data Type: REG_DWORD Value: 65534 Valid Range: 5000-65534 (decimal) Default: 0x1388 (5000 decimal)
Description: This parameter controls the maximum port number used when an application requests any available user port from the system. Normally, ephemeral (that is, short-lived) ports are allocated between the values of 1024 and 5000 inclusive.
4. Quit Registry Editor.
NOTE: An additional registry parameter TCPTimedWaitDelay will determine how long a closed port will wait until being reused. For additional information, please see the following article in the Microsoft Knowledge Base:



149532 (http://support.microsoft.com/kb/149532/EN-US/) Windows NT Clients Run Out of Ports
MORE INFORMATION
For additional information, please see the following white paper available on the Microsoft anonymous File Transfer Protocol (FTP) server:
ftp://ftp.microsoft.com/bussys/winnt/winnt-docs/papers/tcpimp2.exe (ftp://ftp.microsoft.com/bussys/winnt/winnt-docs/papers/tcpimp2.exe)
반응형

'저장고 > C++' 카테고리의 다른 글

Memory Leak 을 쉽게 찾아보자!!  (2) 2006.06.01
VC++에서 delete안된 동적 메모리 체크하기  (0) 2005.12.02
.net에서 내가 쓰는 색상표  (2) 2005.08.22

+ Recent posts