Skip to content

Instantly share code, notes, and snippets.

@lego-sharat
Created July 17, 2019 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lego-sharat/6f394cdc8a082322c6d27e8a0d917c82 to your computer and use it in GitHub Desktop.
Save lego-sharat/6f394cdc8a082322c6d27e8a0d917c82 to your computer and use it in GitHub Desktop.
Useful adb commands for working with devices over wifi
//The information below is taken from https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp
//To connect to an adb device over wifi
adb tcpip 5555
adb connect <ip_address_of_device>:5555
//To find out ip address of the device
adb shell ip -f inet addr show wlan0
//To disconnect
adb disconnect <ip_address_of_device>:5555
//To tell the ADB daemon return to listening over USB
adb usb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment