If you're on a hike you can get on the same network by joining your friend's phone WiFi hotspot.
I'm honestly surprised that WiFi Hotspot doesn't isolate hosts, after companies like Meta have been caught running servers inside their apps and connecting to those to track users.
I literally said that in my comment. I also said it's not as nice an experience.