| Previous | Next |
| WSAEBADF | WSAEFAULT |
WSAEACCES
WSAEACCES is a local policy or permission failure, not a response from the remote peer. It is commonly seen when an application tries to send to a broadcast destination without enabling SO_BROADCAST, or when a bind conflicts with an address that Windows treats as exclusively reserved.
What distinguishes it from address-in-use errors
WSAEADDRINUSE normally means the selected endpoint is already occupied. WSAEACCES means the operation itself is forbidden in the current configuration. For example, a broad socket reuse setting does not override an excluded port range or another component's exclusive ownership of the address.
Useful checks
- Log the local address, port, protocol, socket options, and whether the call was
bind,connect,send, orsendto. - For broadcast traffic, enable
SO_BROADCASTdeliberately and verify that the destination is really intended to be broadcast. - For bind failures, inspect excluded port ranges, listeners, service reservations, and exclusive-address options before adding blind retries or reuse flags.
Microsoft: send · Microsoft: excluded-port bind failure · The Open Group: socket options and endpoints
Looking for a different code? Search another status or error code.