Already, we have covered how to use ADB and the things that you can do using ADB, and sure you must have wondered if there’s an approach to use ADB wirelessly. We have decided to free you of the woes of connecting devices using unmanageable cables because, wires only get in the way, restrict movement, cause obstructions and are generally very untidy to look at.

[ad type=”banner”]

Ways to use ADB wirelessly

There are two different ways to enable wireless ADB on your device. One for rooted devices and another for non-rooted devices.

Note:

Both your computer and your Android device must be connected to the same WiFi network for these methods to work.

You can make it work on different networks as well but you’ll have to use port forwarding, which isn’t a very simple to use. Now, we’ll start off with the process for non-rooted devices, as it applies to most Android devices.

Wireless ADB on non-rooted Devices

Note: This requires a onetime use of a USB cable.

If you aren’t on a rooted device follow the steps below to enable wireless ADB on your device.

  • Connect your device to your computer via the USB cable. Allow USB debugging.

How to Use ADB Wirelessly on Your Android Device

[ad type=”banner”]
  • Fire up the Terminal(Command Prompt on Windows) and check that your device is connected to ADB using the following command:

adb devices

  • This should list your device serial number on the Terminal/Command Prompt, along with the words “device”.

How to Use ADB Wirelessly on Your Android Device

  • Next, type the following command:

adb tcpip 5555

  • “5555” is what is known as a port number. If you don’t know what a port number is, you don’t need to concern yourself with it. Just go with 5555. Technically, you can use any port number you like, but ensure you don’t use a port number that is being used by another service as this may cause problems. Once again, do not tinker with this value if you don’t know what you’re doing.

How to Use ADB Wirelessly on Your Android Device

  • You’re almost done. Disconnect the USB connection but don’t close Terminal/Command Prompt.
  • In your device, head over to Settings -> About Phone -> Status.

How to Use ADB Wirelessly on Your Android Device

[ad type=”banner”]
  • You’ll find a field titled “IP Address”. Note this IP Address down, you’ll need it to connect to your phone.

How to Use ADB Wirelessly on Your Android Device

  • In the Terminal/Command Prompt, type:

adb connect 192.168.0.1:5555

  • Replace the IP address with the IP address of your device, and port number with the port number value you used in step 3. That’s it. You’re done. The Terminal/Command Prompt window should display something like “connected to 192.168.0.1:5555”.
  • If it doesn’t, wait for a few seconds and try again. it works fine.

Wireless ADB on Rooted Devices

If you’re on a rooted device, you don’t need a USB cable. Just follow the steps given below to enable wireless ADB on your device.

  1. Fire up the Terminal Emulatoron your rooted Android device and type the following command:
  • When prompted, grant super user accessto Terminal Emulator
  • Enter the following commandson the Terminal Emulator to enable wireless ADB:
    setprop service.adb.tcp.port 5555
    stop adbd
    start adbd

How to Use ADB Wirelessly on Your Android Device

[ad type=”banner”]
  • In your device, head over to Settings -> About Phone -> Status.

How to Use ADB Wirelessly on Your Android Device

  • You’ll find a field titled “IP Address”. Note this IP Address down, you’ll need it to connect to your phone.

How to Use ADB Wirelessly on Your Android Device

[ad type=”banner”]
  • On the Terminal, type: adb connect 192.168.0.1:5555
  • Replace the IP address with the IP address of your device, and the port number with the port number value you used in step 3. That’s it. You’re done. The Terminal window should display something like “connected to 192.168.0.1:5555”.
  • If it doesn’t, wait for a few seconds and try again. it works fine.

         How to Use ADB Wirelessly on Your Android Device

Categorized in: