I have two clients on the same wifi network and they connect to each other via IPv4 and IPv6 how the hell is that possible?
if they are actually connected over the internet (not through any other way) then it is not surprising really. every client has an IP address that it broadcasts to others as it connects to any other node through a version message. then others send its IP to other nodes and that way it propagates. so your other client eventually finds out about that IP, most likely right away if both are connected to same node(s) and attempts connecting to that IP.