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

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

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

Article ID: 943710 - Last Review: 11/08/2007 01:05:00 - Revision: 1.2

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

  • kberrmsg kbwinsock kbnetwork_icsissues kbexpertiseinter kbtshoot KB943710
Feedback