Skip to content

Instantly share code, notes, and snippets.

@gouravd
Created February 11, 2016 05:27
Show Gist options
  • Save gouravd/e3ca8622ee050a0bb109 to your computer and use it in GitHub Desktop.
Save gouravd/e3ca8622ee050a0bb109 to your computer and use it in GitHub Desktop.
adb over wifi
You need to connect your device to your computer via USB cable. Make sure USB debugging is working. You can check if it shows up when running adb devices.
Run adb tcpip 5555
Disconnect your device (remove the USB cable).
Go to the Settings -> About phone -> Status to view the IP address of your phone.
Run adb connect <IP address of your device>:5555
If you run adb devices again, you should see your device.
Now you can execute adb commands or use your favorite IDE for android development - wireless!
Do I Have to Repeat the Process Every Time?
Now you might ask, what do I have to do when I move into a different work space and change WiFi networks? You do not have to repeat steps 1 to 3 (these set your phone into wifi-debug mode). You do have to connect to your phone again by executing steps 4 to 6.
Unfortenately, the android phones lose the wifi-debug mode when restarting. Thus, if your battery died, you have to start over. Otherwise, if you keep an eye on your battery and do not restart your phone, you can live without a cable for weeks!
Happy wireless coding!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment