Winsock error message when you use a program that tries to bind to TCP network ports on a Windows-based computer: "WSAEADDRINUSE (10048)"
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.
This issue occurs because the Application Layer Gateway service reserves the TCP ports in the 5001 to 5032 range.
This behavior is by design.
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.
- Click Start, type services in the Start Search box, and then press ENTER.
- In the results, right-click Services, and then click Run as administrator.
- In the Services list, right-click Application Layer Gateway Service, and then click Stop.
- Right-click the service, and then click Properties.
- In the Startup type box, click Disabled, and then click OK.
- 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
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