How to connect 2 wallets locally to each other?
Bitcoin Core supports addnode in the configuration which will add a dedicated outgoing peer to the defined IP address. connect will make a single outgoing connection to only that peer and nobody else.