TIL: A Linux IPv6 socket will accept IPv4 connections (unless the IPV6_V6ONLY socket option is set). That's nice.
Such a socket bound to the loopback address (127.0.0.1 or ::1) will accept connections received on other interfaces. That's a bit more of a surprise.