WSAEADDRINUSE
Code: 0x2740 (10048)
As HRESULT:- S: 0 (Success)
- C: 0 (Microsoft-defined)
- N: 0 (Not an NTSTATUS value)
- Facility: 0x000 (FACILITY_NULL: Default)
- Code: 0x2740 (10048)
- Sev: 0 (STATUS_SEVERITY_SUCCESS)
- C: 0 (Microsoft-defined)
- Facility: 0x000 (Default)
- Code: 0x2740 (10048)
Abstract
Only one usage of each socket address (protocol/network address/port) is normally permitted.
Documented in Win32
Windows Sockets Error Codes (winsock2.h): 10048
Address already in use. Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application attempts to bind a socket to an IP address/port that has already been used for an existing socket, or a socket that was not closed properly, or one that is still in the process of closing. For server applications that need to bind multiple sockets to the same port number, consider using setsockopt (SO_REUSEADDR). Client applications usually need not call bind at all— connect chooses an unused port automatically. When bind is called with a wildcard address (involving ADDR_ANY), a WSAEADDRINUSE error could be delayed until the specific address is committed. This could happen with a call to another function later, including connect , listen , WSAConnect , or WSAJoinLeaf .
System Error Codes (9000-11999) (winerror.h): 0x2740
Only one usage of each socket address (protocol/network address/port) is normally permitted.
Associated Modules
| Module | Code | Found in | Description |
|---|---|---|---|
| KernelBase.dll | 0x2740 | 78.1 | Only one usage of each socket address (protocol/network address/port) is normally permitted. |
| ftp.exe | 0x2740 | 78.11011 | Interactive mode %1. |
| kernel32.dll | 0x2740 | 78.11011 | Only one usage of each socket address (protocol/network address/port) is normally permitted. |
| laps.dll | 0x2740 | 1011 | The currently pending post-authentication reset timer has been retried the maximum allowed number attempts and will no longer be scheduled. See https://go.microsoft.com/fwlink/?linkid=2220550 for more information. |
| mswsock.dll | 0x2740 | 78.11011 | Not Owner |
| nbtstat.exe | 0x2740 | 1011 | Registered By Name Server = %1 |
| netstat.exe | 0x2740 | 78.11011 | Passive Opens = %1!u! |
| pathping.exe | 0x2740 | 78.11011 | %1!4d!/%2!4d! =%3!3d!% |
| ping.exe | 0x2740 | 78.11011 | Route: |
| route.exe | 0x2740 | 78.11011 | There is no active IPv4 Route. |
| tracert.exe | 0x2740 | 8.11011 | The option %1 is only supported for %2. |
| tracert.exe | 0x2740 | 7 | The option %1!s! is only supported for %2!hs!. |
| wsock32.dll | 0x2740 | 78.11011 | Not Owner |
| 13 entries | |||