My router uses Smart Connect which like mesh, allows the router's 2.4 GHz and 5 GHz bands to use the same wireless settings and switches over to the best connection in traffic.
When my headless rpi is on the 2.4 GHz, I can ssh into it just fine. However, when it switches to 5 Ghz, the ssh connection freezes and I have to go into my router and turn off the 5GHz connection and reconnect.
How can I ssh into it when it is on the 5GHz band? In other words, what would I type differently in the command line?
[Edit - new question] I tried assigning a fixed ip address to the device on my router. But this did not work. So it turns out, the switch between 2.4 and 5GHz might not the reason that I cannot ssh into the pi, because I tried turning off 5Ghz signal and it's still not connecting.
However, when I tried typing the ssh like this:
instead of like this:
Then I was able to connect. So the new question is, why is it sometimes freezing / hanging when I type the command as hostname, and is there a setting I can change to fix it.