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 both have the longest chain or one has a chain longer than the other then they are the fastest for a connection. Every so often other nodes they are connected to might get pinged too.
Generally if you have a fast switch/modem the lung speed should be less than 1ms and the rate data can be transferred at between them should obviously be higher.
I'm not sure if there's something bitcoin core uses that scans the home network for anything that it can connect to (it'd normally just have to ping 192.168.0.255 for a response from anything that can accept a connection and understand the packet sent to it).