Unless you live a very dynamic lifestyle that requires your calendar to be 24/7 synced, you can just use whatever server software you like, make it listen in LAN only, and have your devices sync when they’re at home.
DecSyncCC and Syncthing is another option.
It just works, there’s no “how”. Take one of the devices outside, connect to the internet, done.