Debug Android App over WIFI in Android Studio
Most of the Android App developers uses Data Cable to Debug or Run App on Android device. Here I will explain how to avoid data cable to run the app using WIFI connection.
Set Static IP to your mobile.
WIFI Setting -> Modify Network -> Advanced Option -> IP Setting -> Change DHCP to Static, Fill IP Address for eg. 192.168.1.51, DNS for eg. 184.108.40.206
Enable adb command
By default adb is not in your
PATH This is where the shell looks for executables. You can check your current
Otherwise, you should add
platform-tools to your
PATH, by adding the path in your shell profile.
- OS X / macOS:
Add the following line there and replace the path with the one where you installed
Use the path of your system
platform-tools and save the profile file, then, re-start the Terminal or run
source ~/.bashrc (or whatever you just modified).
Now type adb in the terminal to test adb command is working or not.
Connect your device with USB and run the following commands:
restarting in USB mode
List of devices attached
adb tcpip 5556
Now connect your device using device IP Address
adb connect 192.168.1.51:5556
connected to 192.168.1.51:5556
Now your device is ready to debug over WIFI. Remove your data cable and forget it. Enjoy wireless debugging.