If you enable the socket option "IPV6_V6ONLY" (seeĀ https://serverfault.com/a/408670) ipv4 and ipv6 can use the same ports on linux and the error is gone.
If you enable the socket option "IPV6_V6ONLY" (seeĀ https://serverfault.com/a/408670) ipv4 and ipv6 can use the same ports on linux and the error is gone.