Suggestion against bind(2) issue Try using native protocol for client you're ok if you use getaddrinfo(3) in standard way. try to all destination provided by getaddrinfo(3) don't consider the error of socket(2) connect(2) etc. and just continue next adddress report error only if all attempt resulted in error