The modern Android ecosystem offers many ways to interact with the device, but none of them provide such deep control as the debugging tool. Android Debug BridgeTraditionally, working with ADB required a physical USB connection, which often created inconvenience, confusing workflows with unnecessary cables and limiting the mobility of the developer or enthusiast. Fortunately, technology ADB over Wi-Fi Allows you to forget about cables and perform complex operations remotely, from anywhere in the room.
Using a wireless protocol is especially important when working with Android TV consoles where access to ports may be difficult, or when testing apps on smartphones with a damaged charging port. To successfully activate the ADB over Wi-Fi feature on Android 11 and above, your device and computer must be on the same Wi-Fi subnet and you must complete the initial setup via USB or QR code. This opens up new horizons for automation, installing system applications, and debugging the interface without being tied to a desktop.
In this article, we'll cover all the nuances of using ADB over Wi-Fi, from basic settings to troubleshooting specific connection issues. You'll learn how to activate debug mode, what commands to enter in the console, and how to ensure a stable connection for comfortable work. A thorough understanding of these processes will significantly speed up your workflow and avoid common beginner mistakes.
Preparation of equipment and software
Before you begin setting up wireless debugging, you need to make sure your tools are fully operational. The basic requirement is to have Platform Tools package on the computer that contains executable files adb And fastbootWithout this set of utilities, any low-level manipulation of the device is impossible, regardless of the connection type.
It's also critical that both devices—your computer and your Android device—are connected to the same Wi-Fi network. If you're using a guest network at your office or a public connection with client isolation (AP isolation), the devices won't be able to "see" each other, and a connection won't be established. In such cases, it's recommended to use a hotspot on your smartphone or set up a separate home network.
To check the system's readiness, run a simple diagnostic. Open a command prompt or terminal and enter the command to check the ADB version. This will confirm that the environment variables are configured correctly and the system is ready to accept commands.
adb version
If the response shows the version number and the path to the executable file, then the software is ready. Otherwise, you'll need to add the path to the folder. platform-tools into system environment variables PATH.
☑️ Ready to connect
Activating developer and debug mode
By default, the Android operating system hides advanced control options from the average user to prevent accidental system corruption. To access these settings, you'll need to enable the hidden "Developer Options" menu. This is done by repeatedly tapping the build number in the "About phone" section.
After activating the hidden menu, a new item will appear in the settings, the name of which may vary depending on the manufacturer's shell (MIUI, OneUI, ColorOS). Within this section, find and toggle the "USB Debugging" slider to the active position. The system will warn you about the risks associated with accessing data, but this is required for ADB to work.
⚠️ Note: On Xiaomi devices and some Huawei models, you also need to link a Mi Account or Huawei ID and enable "USB Debugging (Secure Settings)." Without this step, the computer will not be able to fully access the file system.
Now that the basic permissions have been obtained, you can move on to setting up network communication. It's important to understand that simply turning on the switch isn't enough—you need to tell the system that you want to use the wireless interface for transmitting debug data.
Setting up ADB over Wi-Fi on Android 10 and below
On older versions of the operating system, the setup process requires an initial physical connection via USB. This is necessary to send the device a command to switch the daemon. adbd into TCP port listening mode. Without this step, the device will not begin broadcasting the debug signal over the network.
Connect your smartphone to your computer using a cable and ensure the debugging permission prompt appears on the screen. After confirming authorization, enter the following command in the terminal to put ADB into network mode:
adb tcpip 5555
Once this command is successfully executed, the device will enter network connection standby mode, and you can disconnect the USB cable. Now you need to find your device's IP address. This can be done in the Wi-Fi settings on the device itself or using the command:
adb shell ip addr show wlan0
Once you find the address (usually it looks like 192.168.xx), make the final connection:
adb connect 192.168.1.XX:5555
What to do if port 5555 is busy?
Some manufacturers use port 5555 for their own services. If this command doesn't work, try changing the port to 5556 by running the command 'adb tcpip 5556', and then connect by specifying the new port in the connect command.
If everything went well, a message will appear in the terminal connected to 192.168.1.XX:5555From this point on, all commands will be executed over the air. However, it's worth remembering that the IP address may change when reconnecting to the router unless static address leases are configured in the DHCP server.
Wireless debugging on Android 11 and later
Starting with Android 11, Google introduced the "Wireless Debugging" feature, which allows ADB to be activated over Wi-Fi without the need for a USB cable. This is made possible by an improved security protocol and the ability to pair via a QR code or digital PIN.
To get started, go to the "Developer options" menu and select "Wireless debugging." Enable this feature. In the window that opens, you'll see the connection status, IP address, and port, as well as a "Pair with code" button. Clicking this button will provide you with a six-digit code and port for the initial connection.
Now you need to execute the pairing command on your computer using the received data:
adb pair 192.168.1.XX:PORT
The system will ask for a confirmation code. Enter it, and the devices will exchange security certificates. After successful pairing, you can connect to the primary debugging port (this is indicated in the wireless debugging menu; it is often different from the pairing port).
This method is significantly more convenient, as it doesn't require a working USB port or cable, which is especially valuable when working with tablets, whose ports often fail due to mechanical stress. Furthermore, the debug certificate is saved, and authentication can occur automatically the next time you connect to the same network.
Basic commands and device control
Once the connection is successfully established, you gain almost complete control over the device. You can install apps, take screenshots, retrieve system logs, and even emulate keystrokes. Let's look at the basic set of commands that every user will find useful.
To check the connection status, use the command adb devicesYour device should be listed with its IP address and status. device. If the status unauthorized, check your phone screen - it may need to confirm the RSA key.
One of the most useful features is the ability to install APK files directly from your computer. This eliminates the need to download installers to your phone and search for them in a file manager. The command looks like this:
adb install application.apk
You can also take screenshots of your device's screen, which is useful for creating instructions or error reports. The screenshot is saved to the phone's memory, from where it can be retrieved using the command pull.
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
For advanced users, input emulation is available. You can simulate pressing the Home or Back buttons, or typing on a PC keyboard. This is a powerful tool for testing interfaces.
ADB Command Table
To systematize your knowledge and have a cheat sheet at hand, check out the table of the most commonly used commands. They cover the main wireless debugging use cases.
| Team | Description of action | Example of use |
|---|---|---|
adb connect IP:PORT |
Connecting to a device via network | adb connect 192.168.0.105:5555 |
adb disconnect |
Breaking all active connections | Ending a work session |
adb shell |
Logging into the Linux shell on the device | Executing root commands |
adb logcat |
Real-time system log output | Finding reasons for app crashes |
adb reboot |
Restarting the device | Restarting the system without buttons |
Knowing these commands allows you to effectively manage your device fleet, especially if you're involved in development or testing. The combination of wireless connectivity and automation scripts can significantly reduce the time spent on routine operations.
Diagnosing and resolving connection problems
Despite its convenience, a wireless connection is less stable than a wired one and is susceptible to external factors. The most common issue is connection loss or the device's failure to respond to commands. This may be due to power saving issues.
Many manufacturers aggressively optimize background processes by killing the ADB daemon when the screen is off. To avoid this, find the "USB Debugging" or "Wireless Debugging" app in the battery settings and set it to "Unlimited" or "Don't save battery." This is critical for stable performance.
⚠️ Note: Settings interfaces and menu item names may vary depending on the Android version and manufacturer's user interface (Samsung One UI, Xiaomi MIUI/HyperOS, Google Pixel UI). Always check the menu paths for your specific device.
Another common cause of problems is a dynamic IP address change. If the router assigns a new address to the device, the computer will continue to access the old one, and the connection will fail. The solution is to assign the IP address to the phone's MAC address in the router settings.
If commands are executed slowly or with a delay, check your Wi-Fi signal. For over-the-air debugging, it is recommended to use the 5 GHz, which provides greater throughput and is less susceptible to interference from microwave ovens and Bluetooth devices.
In some cases, simply restarting the daemon process on the device using the command helps. adb kill-server on your computer and reconnect. It's also worth checking whether your antivirus or firewall software is blocking incoming connections to port 5555.
Frequently Asked Questions (FAQ)
Is it safe to keep Wi-Fi debugging enabled all the time?
Leaving debugging enabled on public Wi-Fi networks is strongly discouraged, as it gives complete access to your device to anyone who connects to your network. At home, with a strong router password and WPA3 enabled, the risks are minimal, but it's best to disable the feature when not in use.
Why can't ADB see the device via Wi-Fi, even though the IP is correct?
Most often, the problem lies in the router settings, where AP Isolation is enabled, preventing devices from seeing each other. Also, check the Windows Firewall, which may be blocking incoming connections for adb.exe.
Can I use ADB over Wi-Fi for root access?
ADB itself doesn't grant root access; it merely provides an interface for commands. However, if your device is already rooted (for example, via Magisk), you can use the ADB shell to run commands as the superuser by adding the prefix su.
How to disable wireless debugging?
The easiest way to do this is through the developer menu on the device itself, by turning off the "Wireless Debugging" toggle switch. You can also run the command adb usb (if the device is connected via cable) or simply reboot the phone, which will reset the TCP port settings.