WSAEADDRINUSE

Code: 0x2740 (10048)

As HRESULT:As NTSTATUS:

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

ModuleCodeFound inDescription
KernelBase.dll0x274078.1Only one usage of each socket address (protocol/network address/port) is normally permitted.
ftp.exe0x274078.11011Interactive mode %1.
kernel32.dll0x274078.11011Only one usage of each socket address (protocol/network address/port) is normally permitted.
laps.dll0x27401011The 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.dll0x274078.11011Not Owner
nbtstat.exe0x27401011Registered By Name Server = %1
netstat.exe0x274078.11011Passive Opens = %1!u!
pathping.exe0x274078.11011%1!4d!/%2!4d! =%3!3d!%
ping.exe0x274078.11011Route:
route.exe0x274078.11011There is no active IPv4 Route.
tracert.exe0x27408.11011The option %1 is only supported for %2.
tracert.exe0x27407The option %1!s! is only supported for %2!hs!.
wsock32.dll0x274078.11011Not Owner
13 entries