Android Debug Bridge (ADB) is the primary tool developers and power users rely on to communicate with a device from a PC. Traditionally it requires a USB cable, which can be inconvenient when the device is mounted on a stand, inside a case, or simply out of reach. Enabling USB debugging over Wi‑Fi lets you run adb commands, install apps, capture logs, and debug UI issues without ever plugging in a cable. This guide explains how to set up wireless ADB safely, what you need beforehand, and how to resolve the most common hiccups.
At this point, a USB cable is still required for the initial pairing, but you won’t need it for subsequent sessions.
adb resides, e.g., cd ~/platform-tools.adb devices. You should see your device listed with the status device. If you see unauthorized, check the phone for a dialog asking to allow USB debugging and grant permission.With the device still connected via USB, instruct ADB to listen for connections over the network:
adb tcpip 5555
The number 5555 is the default port used by ADB. You can choose any unused port, but 5555 works everywhere.
192.168.1.42.Back on the computer, run:
adb connect 192.168.1.42:5555
Replace 192.168.1.42 with the actual IP address you noted. If the connection succeeds, you’ll see:
connected to 192.168.1.42:5555
You can now verify the wireless connection with:
adb devices
The list should show your device with the IP address as the identifier, marked as device. At this point you can unplug the USB cable; ADB will continue to work over Wi‑Fi.
All standard ADB commands work exactly as they do over USB. For example:
adb install myapp.apk – install an APK.adb logcat – view live logs.adb shell pm list packages – list installed packages.Because the connection is wireless, you may notice a slight increase in latency (typically 30‑150 ms). For most debugging tasks this is negligible, but high‑frequency commands (e.g., rapid UI automation) may feel a bit slower.
Leaving wireless ADB enabled can expose your device to unintended access on the same network. When you’re done, it’s good practice to disconnect:
adb disconnect 192.168.1.42:5555
Alternatively, you can simply toggle USB debugging off in Developer options, which automatically disables the TCP/IP listener.
adb connectadb process via Settings → Battery → Battery optimization.If you see unauthorized after a reboot, a new RSA key pair was generated. Re‑authorize the PC by confirming the dialog on the device.
Wireless ADB opens a network port that can be accessed by anyone on the same LAN who knows the port number. To keep your device safe:
Some Android OEMs (e.g., Samsung, OnePlus) ship with a built‑in “Wireless debugging” toggle inside Developer options (available from Android 11 onward). If your device shows this option, you can skip the USB‑first step entirely:
This method uses a QR code or numeric pairing code and is more convenient, but the underlying principle remains the same – ADB listens on a TCP/IP port.
If you ever need to revert to the default USB‑only behavior, simply run:
adb usb
This command forces ADB back to USB mode and closes any active TCP/IP listeners. You can also clear the stored ADB keys on the device by navigating to Settings → Developer options → Revoke USB debugging authorizations.
Setting up USB debugging over Wi‑Fi transforms a tethered development workflow into a flexible, cable‑free experience. By following the steps above you’ll be able to install, test, and debug apps from anywhere within your Wi‑Fi range while keeping security risks under control. Remember to disconnect or disable wireless ADB when you’re done, and enjoy the freedom of wireless Android development!









