Microsoft KB Archive/943710

= Winsock error message when you use a program that tries to bind to TCP network ports on a Windows-based computer: &quot;WSAEADDRINUSE (10048)&quot; =

Article ID: 943710

Article Last Modified on 11/8/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Ultimate

-



SYMPTOMS
When you use a program that tries to bind to TCP network ports on a Windows-based computer, you may receive the following Winsock error message:

WSAEADDRINUSE (10048) Only one usage of each socket address (protocol/network address/port) is normally permitted.

This behavior occurs if the following conditions are true:
 * Internet Connection Sharing is enabled on the computer that is running Windows.
 * The program tries to connect to TCP ports in the 5001 to 5032 range.



CAUSE
This issue occurs because the Application Layer Gateway service reserves the TCP ports in the 5001 to 5032 range.



STATUS
This behavior is by design.



WORKAROUND
To work around this behavior, stop the Application Layer Gateway service. To stop the Application Layer Gateway service, follow these steps.

Note Stop this service only if you do not have to have FTP functionality.

Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
 * 1) Click Start, type services in the Start Search box, and then press ENTER.
 * 2) In the results, right-click Services, and then click Run as administrator.
 * 3) In the Services list, right-click Application Layer Gateway Service, and then click Stop.

If you want to prevent the service starting after a restart of the computer, follow these steps:
 * 1) Right-click the service, and then click Properties.
 * 2) In the Startup type box, click Disabled, and then click OK.
 * 3) Exit the Services snap-in.

Additional query words: Alg ICS Netstat 10048 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031

Keywords: kberrmsg kbtshoot kbwinsock kbnetwork_icsissues kbexpertiseinter KB943710

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.