Windows Sockets Error – WSAEACCES 10013

In this post, you’ll learn more about the Windows Socket Error WSAEACCES
10013 returned by the WSAGetLastError function in Windows as well a quick description about the error

Windows Socket Error Code

WSAEACCES
10013

Windows Socket Error Description

Permission denied.
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST).
Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4.0 with SP4 and later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4.0 with SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.