I have written a script below for quickly connecting using adb pair
and adb connect
on Mac: https://gist.github.com/bartwell/05cb8f4e2a913229ea652fe1eed956e7
Usage:
./script.sh 192.168.0.101
./script.sh 192.168.0.101 --restart-server
./script.sh -h