You would have to use some 3rd party solution like Syncthing or community plugins (which I'm not that trusting of).
I use Syncthing and have it setup in local network mode only. If I need to sync my notes outside of my home, I would VPN (WireGuard) into my home.