Skip to content

Instantly share code, notes, and snippets.

@jsramraj
Created June 22, 2020 08:52
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 jsramraj/ce93d3d79f38a8d89576f066578bfb80 to your computer and use it in GitHub Desktop.
Save jsramraj/ce93d3d79f38a8d89576f066578bfb80 to your computer and use it in GitHub Desktop.
- Connect the device via USB and make sure debugging is working
- Run `adb tcpip 5555` in the terminal. This makes the device to start listening for connections on port 5555
- Look up the device IP address with `adb shell netcfg` or `adb shell ifconfig` with 6.0 and higher
- You can disconnect the USB now
- Type `adb connect <DEVICE_IP_ADDRESS>:5555` in the terminal. This connects to the server we set up on the device on step 2
- Now you have a device over the network with which you can debug as usual.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment