Connecting ADB over WiFi for Non-Rooted Android Devices

Connecting ADB over WiFi for Non-Rooted Android Devices

30 November 2024 Stephan Petzl Leave a comment Tech-Help

Connecting Android Debug Bridge (ADB) over WiFi can greatly enhance your development workflow by eliminating the need for a USB connection. This guide provides a step-by-step solution to connect ADB over WiFi on non-rooted Android devices, focusing on scenarios involving older Android versions.

Step-by-Step Instructions

To successfully connect your non-rooted Android device to ADB over WiFi, follow these steps:

1. Set Up TCP/IP Connection

  • Connect your Android device to your computer using a USB cable.
  • Open a terminal or command prompt and execute the following command to set the TCP/IP port:
adb tcpip 5555

2. Identify Device IP Address

  • While still connected via USB, find the device’s IP address by running:
adb shell ip -f inet addr show wlan0
  • Look for the IP address in the output, typically shown as inet 192.168.x.x.
  • 3. Connect ADB over WiFi

    • Disconnect the USB cable.
    • In the terminal, connect to the device using its IP address:
    adb connect [device-ip]:5555
  • Replace [device-ip] with the actual IP address of your device.
  • Troubleshooting Tips

    If you encounter issues, consider the following:

    • Ensure that both your computer and device are on the same WiFi network.
    • For older Android versions like 2.x, WiFi ADB may not be supported. Consider upgrading to a newer version if possible.

    Enhancing Your Testing Workflow

    For those testing mobile applications, consider using Repeato, a no-code test automation tool for iOS and Android. Repeato allows you to create, run, and maintain automated tests efficiently. It integrates with ADB, enabling you to execute ADB commands as part of your test scripts, thereby optimizing your testing process.

    Explore our documentation for more insights into enhancing your testing capabilities with Repeato.

    Like this article? there’s more where that came from!