fixing default socket check if socket is 0
ENETUNREACH on dgram