What does errno 126 (EADDRNOTAVAIL) mean?

 
Could be also:
ConstantTypeOS
ERROR_MOD_NOT_FOUNDWin32 errorWindows
ENOTCONNerrnoWindows
SYSTEM_THREAD_EXCEPTION_NOT_HANDLEDBugCheck CodeWindows
Previous Next
EADDRINUSE ENETDOWN

EADDRNOTAVAIL

The requested local endpoint cannot be assigned

Solaris documents EADDRNOTAVAIL for creating a transport endpoint with an address that is not on the current machine. In bind-oriented code, this directs attention to the local address being requested, not to whether a remote server is listening.

The condition differs from EADDRINUSE, where the address exists but the protocol does not permit another use, and from EAFNOSUPPORT, where the address family itself is unsupported or incompatible. Logging the exact local address and family makes these errors distinguishable.

Local-address checks

  • Verify the address is configured in the relevant Solaris zone/network context and has not disappeared after interface reconfiguration.
  • Check whether name resolution or configuration selected a remote address for a local bind.
  • For IPv4/IPv6 code, confirm the address structure family matches the socket domain and the requested local address.

References


Looking for a different code? Search another status or error code.