Wireless Debugging

Sagar Patel
2 min readJun 18, 2018

*Wireless ADB*

Below is a small guide to set up wireless ADB

Below guide is just for the information. It is useful when our system is connected with the hotspot of our device. Otherwise, if both our device and system are connected to same network through wifi, we can simply use the plugin Android Wifi ADB OR one of the various apps available for wireless debugging in play store.

Note that windows and linux may require wired connection after every *disconnection* whereas you may set up your mac to automatically turn on the wireless ADB every time your device is in same network and configuration. However, I don’t have mac so not much information about mac.

Also note that before we can set up wireless debugging, our device should not loose the connection.

Let us start:

  1. First we connect our device with wired set up as we usually do. We make sure that our device is shown as attached device. We can also check it from the terminal window running below command:
adb devices 

…and we should be able to see our device listed by it’s id. We also make sure that our device and our system both are sharing *common network* (I.e., both are connected with same network. E.g., Our system is connected with our device’s network through hotspot).

Some devices have an option like ADB over network in developer options. If our device too has such option, we should enable it.

2. From the terminal window, we run below command:

adb tcpip 5555

Here, 5555 is the port we are explicitly giving.

3. Now we need the ip address of our device. To know ip address of our device, we run below command:

adb shell ifconfig

OR

adb shell netcfg 

…and from the list of information, we can get the ip address of our device.

4. Then we run:

adb connect *our ip address*.

For example:

adb connect 192.168.0.162 

and we should see the message like:

Connected to 192.168.0.162:5555

5. Now we can disconnect the data cable and can do wireless debugging as long as our device and system are in same network.

--

--