How to Connect ADB over Wi-Fi: Wireless Android Debugging

Modern smartphones are increasingly lacking ports, and cables constantly get tangled underfoot, interfering with proper operation. Fortunately, Android 11 and newer introduce the long-awaited wireless debugging feature, allowing you to forget about USB cables when connecting to a computer.

Using the protocol ADB (Android Debug Bridge) Wi-Fi access allows access to hidden system functions, allowing you to install apps, take screenshots, and manage files remotely. This is especially convenient for developers or advanced users who frequently test interfaces.

In this article, we'll cover all the details of setting up a connection, from activating hidden menus to entering commands in the terminal. You'll learn how to stabilize the signal and what commands are required for initial syncing of your device with a PC.

Benefits of Wireless ADB Connection

Switching to wireless debugging mode offers a host of benefits, the most important of which is physical freedom. You no longer have to reach for the USB port every time you need to check a log or install a test program. APK file.

Furthermore, the absence of a cable reduces wear on the charging port, which is one of the most vulnerable components of a smartphone's design. Frequent connections can loosen the connector, leading to future charging issues.

  • 📶 No physical distance restrictions within the same room.
  • 🔋 Ability to charge the device while debugging without using an OTG hub.
  • 🚀 Quickly launch debugging sessions without having to switch USB modes.
  • 💻 Conveniently work with multiple devices simultaneously through one network.

It is worth noting that the data transfer rate Wi-Fi 5 GHz It's practically as fast as USB 2.0, making installing heavy applications a snap. However, connection stability directly depends on the quality of your home network and router.

Necessary conditions and equipment preparation

Before you begin setting up, make sure your device meets the minimum requirements. This primarily concerns the operating system version: native support for wireless debugging was only introduced in Android 11.

The second critical requirement is that both devices (smartphone and computer) must be on the same local network. If you're using a guest Wi-Fi network or client isolation on the router, the connection will fail.

⚠️ Attention: On Xiaomi, Redmi, and POCO devices running MIUI or HyperOS, you must additionally enable "USB debugging (security settings)" and allow installation via USB, otherwise the phone will not issue a pairing code.

You will also need the package installed. Platform Tools on your computer. This is a set of utilities from Google that contains the adb and fastboot executables. Without them, interacting with the terminal will be impossible.

☑️ Readiness check

Completed: 0 / 4

Activating Developer Mode on Android

By default, access to debugging tools is hidden from regular users for security reasons. To activate the hidden menu, you'll need to perform a series of quick clicks.

Go to your phone's settings and find the "About phone" or "System information" section. Locate the "Build number" line and tap it seven times in a row until a notification appears informing you that you've become a developer.

After this, a new "Developer Options" option will appear in the main settings menu. This is where you'll find all the necessary switches for working with ADB.

Parameter Default value Necessary action
USB debugging Off Turn on
Wireless debugging Off Turn on and connect
Debugging via Wi-Fi Off Activate (for Android 11)
USB mode Charging only Does not affect Wi-Fi
Selective debugging Off Optional

It's important to understand that enabling these features makes your device more vulnerable to attacks when connected to a public network. Therefore, only use wireless debugging in trusted environments.

Setting up a connection via the smartphone menu

The easiest way to establish a connection is to use Android's built-in interface. Open the "Developer options" menu and find "Wireless debugging."

After turning on the switch, click on the menu bar itself to enter the submenu. There you will see the IP address and port, for example: 192.168.1.55:34567This data will need to be entered into the computer's command line.

What to do if the port keeps changing?

The port is regenerated each time the service is reconnected. To avoid entering new data, you can use a QR code for pairing, if this option is available on your version of Android, or assign a static IP in the router settings.

A screen will appear asking if you want to allow debugging from this computer. Click "Always allow from this computer" and confirm. The devices are now paired.

If you're using Android 12 or later, the process can be even simpler: simply scan the QR code on your phone's screen with the camera on your PC or another device, if the system offers this option.

Connecting via the command line (ADB Pairing)

For those who prefer the classic method or use Android versions with different interfaces, there's a manual connection method. It requires entering commands in the terminal.

First, open a command prompt on your computer in the Platform Tools folder. Enter the command to search for devices on the network to ensure they can see each other:

adb connect 192.168.1.XX:5555

Where 192.168.1.XX — this is the IP address of your smartphone, and 5555 — the standard debugging port. If the standard port has been changed, use the one specified in the phone's menu.

⚠️ Attention: On some devices (such as Samsung or Huawei), the standard port 5555 may be blocked by the manufacturer. In this case, use the port displayed in the wireless debugging menu (usually 4 digits).

After successfully entering the command, a dialog box will appear on the smartphone screen requesting a debug key. Enter the code displayed there into the computer terminal or confirm the pairing on the phone screen.

Troubleshooting common connection issues and errors

Despite its convenience, wireless connections can be unstable. Users often encounter the error failed to connect to... or constant disconnections.

One possible cause is power saving. Android may kill background debugging processes to conserve battery life. Add the Settings app or Google Play services to the battery exception list.

  • 🔌 Check if your antivirus or firewall is blocking ADB ports.
  • 📡 Make sure you are not using a VPN on your phone or PC during setup.
  • 🔄 Restart the adb service with the command adb kill-server And adb start-server.
  • 📶 Try switching to a 2.4 GHz network if 5 GHz has a short range.

It's also worth considering that if you change your Wi-Fi network (for example, switching from a home router to a mobile hotspot), the device's IP address will change, and you'll have to pair it again.

📊 What type of connection error did you encounter most often?
Invalid IP address
Connection timeout
The request does not appear on the screen
Everything works the first time

Useful commands for remote work

Once successfully connected, you'll have access to a wide range of control options. You can install apps directly from the folder, take screenshots, or even mirror your screen.

To install the APK file, use the command adb install filename.apkIf the application is already installed and needs to be updated, add a flag -r.

adb shell screencap -p /sdcard/screen.png

adb pull /sdcard/screen.png

This combination of commands will take a screenshot and save it to your computer. It's much more convenient than reaching for your phone to take a screenshot using physical buttons.

Don't forget to end your session with the command adb disconnect, especially if you're in a public place. This will close the open port and secure your data.

Is it possible to connect ADB via Wi-Fi on Android 10 and below?

These versions don't have native wireless debugging functionality. However, you can use a temporary method: first connect the phone via USB, enter the command adb tcpip 5555, disconnect the cable, and then connect via Wi-Fi. After rebooting, the settings will be reset.

Is it safe to keep wireless debugging enabled all the time?

No, this creates a potential vulnerability. If an attacker gains access to your Wi-Fi network, they can attempt to connect to your device. We recommend enabling this feature only while you're using it and disabling it after use.

Why can't the computer see the phone via Wi-Fi, even though the IP is correct?

Most often, the problem lies in the router settings. Check if "AP Isolation" is enabled, which prevents devices within the network from communicating. Also, make sure both devices are on the same subnet.