Use only 2 sockets, one dedicated to IPv4 and one to IPv6.