Skip to content

Instantly share code, notes, and snippets.

@faisalmohd83
Created December 14, 2018 08:41
Show Gist options
  • Save faisalmohd83/0949a52721be9db506ae6440bf3824e4 to your computer and use it in GitHub Desktop.
Save faisalmohd83/0949a52721be9db506ae6440bf3824e4 to your computer and use it in GitHub Desktop.
ADB over Wi-Fi
ADB over WiFi:
1. Connect device via USB and make sure debugging is working, then run:
adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555
2. Disconnect USB and proceed with wireless debugging.
3. When you're done and want to switch back to USB debugging, run:
adb -s <DEVICE_IP_ADDRESS>:5555
To find the IP address of your device, go to Settings > Wi-Fi > Advanced > IP Address on your device or run adb shell netcfg (oder ifconfig statt netcfg).
# CLI for device(s) list.
adb devices
# Connect over TCP-IP
adb tcpip 5555
# CLI to find IP address
adb shell ip addr show wlan0
# to connect over Wi-Fi
adb connect <DEVICE_IP_ADDRESS>:5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment