Skip to content

Instantly share code, notes, and snippets.

@bertt
Last active June 12, 2018 13:51
Show Gist options
  • Save bertt/5e316d754654e6044bf86718e7c0f77c to your computer and use it in GitHub Desktop.
Save bertt/5e316d754654e6044bf86718e7c0f77c to your computer and use it in GitHub Desktop.
How to debug your Android application over WIFI
0] Preparations
- Connect Android phone to usb
- Put your IDE in debug mode
- get adb tool working on command line
1] get the ip number of android:
$ adb shell ip addr show wlan0
24: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
link/ether 2c:fd:a1:8c:dc:f1 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.221/22 brd 192.168.27.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::2efd:a1ff:fe8c:dcf1/64 scope link
valid_lft forever preferred_lft forever
IP number android: 192.168.25.221
2] adb connect 192.168.25.221
3] usb cable disconnect
4] Deploy in your IDE (F5)!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment