Suggestion against bind(2) issue (cont.) for server make all sockets provided by getaddrinfo(3) ready for accepting set IPV6_V6ONLY if available (#ifdef) don't consider the error of setsockopt(2) as fatal don't consider the error of bind(2) as fatal (optional) don't forget IPv4-mapped addresses