Over a million developers have joined DZone.

Use ADB Over Wi-Fi Without Extra Application or Software

DZone's Guide to

Use ADB Over Wi-Fi Without Extra Application or Software

· Java Zone
Free Resource

Just released, a free O’Reilly book on Reactive Microsystems: The Evolution of Microservices at Scale. Brought to you in partnership with Lightbend.

Normally developers use USB cables to connect Android devices with computers to debug and for other purposes.

What are the problems with USB ?

  1. You can not move around with the device (some app require to move around for testing)
  2. Cable damage
  3. USB socket of Android device can be damaged

What is solution of above problems ?

Normally, developers use ADB over USB, but it is also possible to use ADB over Wi-fi. The following steps explain how to use ADB over Wifi


Android device and computer should be connected in same network.  

Step 1: Connect Android device with USB cable to computer

Step 2: Use following command in terminal to make sure adb is running in USB mode.

 $adb usb
restarting in USB mode
Connect to the device over USB.

Step 3: Execute following command in terminal to make sure adb identify/list gets connected with the device.

 $adb devices

Step 4: Change adb mode from USB to tcpip using following command.

 $adb tcpip 5555
restarting in TCP mode port: 5555

Step 5: Now, adb is running over TCP/IP mode, Let’s find IP address of Android device. Go to Settings in Android device -> About -> Status -> IP address. note down the IP address of connected Android Device.

Step 6: Use following command to connect ADB with IP address

 $adb connect #.#.#.#
connected to #.#.#.#:5555

Step 7: Now adb is working over Wi-fi, You can remove USB cable from Android device.

Step 8: To confirm adb is working over Wi-fi and your device is still connect. you can use following command

 $adb devices
#.#.#.#:5555 device

You’re now ready to go!, Enjoy ADB over Wi-fi. Note: Use following command to change ADB mode to USB

 $adb usb

Strategies and techniques for building scalable and resilient microservices to refactor a monolithic application step-by-step, a free O'Reilly book. Brought to you in partnership with Lightbend.


Published at DZone with permission of Ketan Parmar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}