Local sim card with internet plan works great. You can usually get them right there at the airport.
If you connect to a shared WiFi remember to use a VPN to reduce the snooping from others into your device. It's a good idea to have a VPN anyway.
I've been having a look at a more worldwide solution, like international sim cards, or even satellite based internet, but the last time I checked, grabbing a local sim card was still the best in terms of convenience and price. Things might have changed recently though, so happy to hear comments about a global solution.