Skip to content

Instantly share code, notes, and snippets.

@mdellavo
Last active January 8, 2018 01:37
Show Gist options
  • Save mdellavo/90c25927ef13e381dc91128f21028ebb to your computer and use it in GitHub Desktop.
Save mdellavo/90c25927ef13e381dc91128f21028ebb to your computer and use it in GitHub Desktop.
ADDR="$(adb shell ip -f inet addr show wlan0|grep inet|cut -d' ' -f 6|cut -d\/ -f1)"
echo "connecting to $ADDR"
adb tcpip 5555
adb connect $ADDR:5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment