androidadbusb-debugging

How to connect multiple android devices with ADB over wifi


ADB is installed in the computer, and usb debugging is enabled on devices. Also I have connected one device over wifi successfully. How to connect more devices without having to mention the serial number of the device for every additional device with the -s flag like: adb -s <serial> tcpip <port>


Solution

  • Yes there is a way to do so without having to type the serial number.

    Say you have 2 devices A (IP: 192.168.1.32) and B (IP: 192.168.1.33) that you want to connect to ADB over wifi:

    1. Connect device A with a USB cable to the computer (but not B)
    2. adb -d tcpip 5555
    3. adb connect 192.168.1.32
    4. Disconnect device A, and connect device B with a USB cable to the computer
    5. adb -d tcpip 5555
    6. adb connect 192.168.1.33