Skip to content

Instantly share code, notes, and snippets.

@FellipePeixoto
Created June 2, 2021 12:08
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 FellipePeixoto/1479357e9177fe20d0e605c5bc9d4859 to your computer and use it in GitHub Desktop.
Save FellipePeixoto/1479357e9177fe20d0e605c5bc9d4859 to your computer and use it in GitHub Desktop.
1 - Connect the device via USB and make sure debugging is working;
2 - adb tcpip 5555. This makes the device to start listening for connections on port 5555;
3 - Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher; If it doesn't work, go to your wi-fi router and find the ip of the device
4 - You can disconnect the USB now;
5 - adb connect <DEVICE_IP_ADDRESS>:5555. 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.
For more info: https://stackoverflow.com/questions/4893953/run-install-debug-android-applications-over-wi-fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment