On 3/22/24 09:45, Thomas Cameron wrote:
If you want to connect between two laptops, I would just buy an ethernet cable (e.g. https://www.amazon.com/Amazon-Basics-Ethernet-Gold-Plated-Connectors/dp/B00N...) and configure one laptop with a static ethernet ip address of something like 172.31.101.1 and the other with 172.31.101.2. Add them to your /etc/hosts file like:
172.31.101.1 laptop1 172.31.101.2 laptop2
Then each of them would have wifi access out to the Internet, and they'd be able to ssh into each other using "ssh laptop1" or "ssh laptop2" for any connections between them.
It's a small pain, but it's a LOT easier than trying to circumvent security on commercial wifi networks (which can get you kicked off the network or even kicked out of the hotel or business).
The simpler option is to enable internet sharing on one of them, then the IP addresses are handled automatically.