Android Wireless Debugging
Muhammad Intsab Haider
Technical Lead || Google Certified Android Developer || Mobile Developer || Working in Tamm
For an android developer mobile data cable is very important for debugging or running project on real device, but in some cases we have to use that cable for other device or for other purpose. For example
You have to recharge your bluetooth headphones or Power-bank may be
You are working on project that involves other hardware that needs data-cable at the same time.
You have only limited number of USB Ports and all are engaged.
In these cases i can solve your problem!
Follow the following steps & you will be able to save your usb port and cable also:
- Make sure your system and mobile are connected with same wifi network.
- Plug the cable with your phone and connect it with laptop.
- Open terminal and give command adb tcpip 5555
- Unplug the mobile cable. {Now cable and port is Free for other purpose}
- Open settings of your android phone -> About phone - > Status and note your IP Address.
- In terminal write command adb connect {your ip}:5555 and press enter e.g adb connect 192.168.1.1:5555
You will get message on terminal that "You are connected" To Verify connectivity status run command adb devices (It will show 192.169.1.1 in connected devices).
NOW Just press run button and you can enjoy debugging project without data cable on your android phone.