Using ADB Over Wi‑Fi for Cable‑Free Android Debugging

15 min read Learn step‑by‑step how to set up ADB over Wi‑Fi, enabling cable‑free debugging, file transfer and app installation on Android devices. October 13, 2026 22:00 How to Use ADB Over Wi‑Fi to Debug Android Devices Without a USB Cable

Why use ADB over Wi‑Fi?

Android Debug Bridge (ADB) is the backbone of most Android development and troubleshooting workflows. Traditionally you need a USB cable to connect the device to a PC, which can be inconvenient when the phone is already in a case, docked, or physically distant. Wireless ADB removes the cable, letting you install apps, pull logs, and push files from anywhere on the same network. It’s especially handy for:

  • Testing UI on a TV or monitor where the device is mounted.
  • Debugging wearables or IoT devices that lack a USB host port.
  • Quickly swapping between multiple devices without unplugging cables.

Both Android 11 (and newer) and older versions support wireless ADB, but the activation steps differ. This guide covers both paths, explains the underlying concepts, and provides troubleshooting tips that go beyond the usual “check your Wi‑Fi”.

Before you start

  • PC requirements: Windows 10/11, macOS 10.13+, or a recent Linux distro with adb installed.
  • Android device: At least Android 7.0 (Nougat) for the classic TCP/IP method; Android 11+ for the built‑in Wireless Debugging UI.
  • Network: Both PC and phone must be on the same Wi‑Fi subnet (e.g., 192.168.1.x). If you use a guest network or a VPN, the connection will fail.
  • Power: Keep the phone plugged in or at least 50 % charged; a dropped connection during a file transfer can corrupt data.
  • Backup: No data is modified by enabling wireless ADB, but if you plan to push new APKs, a recent backup is always a good safety net.

Step 1 – Install ADB on your computer

If you already have the Android SDK Platform‑Tools, you can skip this. Otherwise, download the official Platform‑Tools package for your OS, extract it, and add the folder to your system PATH.

  1. Windows: Extract to C:\adb and add that path via System → Advanced → Environment Variables.
  2. macOS/Linux: Extract to ~/adb and add export PATH=~/adb:$PATH to your shell profile.

Verify the installation by opening a terminal (or Command Prompt) and typing:

adb version

You should see something like Android Debug Bridge version 1.0.41.

Step 2 – Enable Developer Options on the Android device

Developer Options expose the ADB daemon. The steps are identical on almost every Android skin:

  1. Open Settings → About phone.
  2. Find Build number and tap it seven times. You’ll see a toast saying “You are now a developer!”.
  3. Return to the main Settings screen; a new entry called Developer options appears.

If your device runs a heavily customized UI (e.g., Xiaomi’s MIUI, OnePlus OxygenOS), the path may be Settings > Additional settings > Developer options. The key idea is the same: you need to unlock the hidden menu.

Step 3 – Turn on USB debugging (mandatory for both methods)

Even though we’ll connect wirelessly, the first handshake still requires a USB connection on older Android versions, and it’s a safety gate on newer ones.

  1. Enter Developer options.
  2. Find USB debugging and toggle it ON.
  3. A confirmation dialog appears; accept it and, if prompted, check Always allow from this computer for smoother future connections.

When you later connect via Wi‑Fi, the PC will be treated as an authorized host, just like a USB cable would.

Step 4 – Choose the appropriate wireless method

From Android 11 onward, Google added a dedicated Wireless debugging UI that handles pairing and key exchange automatically. For Android 7–10 you must use the classic adb tcpip command over a temporary USB link.

4A – Android 11+ – Built‑in Wireless Debugging

  1. In Developer options, scroll to Wireless debugging and enable it.
  2. Tap the Pair device with pairing code button. Two numbers appear: a pairing code (e.g., 123456) and a port (usually 37123).
  3. On your PC, run:
    adb pair DEVICE_IP:PORT
    Replace DEVICE_IP with the phone’s IP address (shown in the same screen) and PORT with the displayed port.
  4. Enter the pairing code when prompted.
  5. After a successful pair, the UI changes to Connect to device. Click it, or run manually:
    adb connect DEVICE_IP:5555
    (Port 5555 is the default ADB daemon port.)

At this point, adb devices should list your phone as device. If you see unauthorized, re‑authorize on the phone’s prompt.

4B – Android 7‑10 – Classic TCP/IP method

This method requires a brief USB connection to switch the ADB daemon into TCP mode.

  1. Connect the phone to the PC with a USB cable.
  2. Open a terminal and confirm the device is seen:
    adb devices
    You should see a line like 0123456789ABCDEF device.
  3. Tell ADB to listen on TCP port 5555:
    adb tcpip 5555
    The daemon restarts and now accepts network connections.
  4. Disconnect the USB cable.
  5. Find the phone’s IP address (Settings → About phone → Status → IP address, or via the Wi‑Fi settings screen).
  6. Connect from the PC:
    adb connect DEVICE_IP:5555
  7. Run adb devices again. Your device should appear as device.

If the connection fails, double‑check that the phone and PC share the same subnet and that no firewall blocks port 5555.

Step 5 – Verify the wireless connection

A reliable way to confirm everything works is to pull a simple log:

adb -s DEVICE_IP:5555 logcat -d | head -n 10

If you see recent log entries, the link is solid. You can also try installing a test APK:

adb -s DEVICE_IP:5555 install path/to/sample.apk

Success messages confirm that both file transfer and package manager commands travel over Wi‑Fi.

Step 6 – Practical use cases

Now that the tunnel is up, you can replace many routine USB tasks with wireless equivalents.

  • Live UI debugging: Run adb -s IP:5555 logcat while you interact with the app on the device.
  • Screen capture: adb -s IP:5555 exec-out screencap -p > screen.png
  • Pulling data files: adb -s IP:5555 pull /sdcard/Download/notes.txt
  • Push updates: adb -s IP:5555 push new_config.json /sdcard/

All commands behave exactly as they would over USB; only the transport layer changes.

Step 7 – Keep the connection alive

Wireless ADB can time out after a period of inactivity (usually 5‑10 minutes). To avoid surprise disconnections during a long debugging session, you can enable a keep‑alive ping.

# On Linux/macOS
while true; do adb -s IP:5555 shell echo ping; sleep 60; done

On Windows, a simple batch loop works:

:loop
adb -s %IP%:5555 shell echo ping
timeout /t 60 >nul
goto loop

Remember to stop the loop when you’re done, or else you’ll keep the device awake and drain the battery.

Step 8 – Security considerations

Wireless ADB opens a network port that, if left exposed, could allow an attacker to control your device. Follow these best practices:

  • Use a trusted Wi‑Fi network. Public hotspots often allow device‑to‑device communication, which is risky.
  • Disable wireless debugging when not needed. In Developer options, toggle it OFF after your session.
  • Restrict the PC’s IP. Some routers let you set a “client isolation” rule; keep the PC and phone on the same VLAN.
  • Monitor authorized hosts. In Developer options you can see a list of paired devices; remove any you don’t recognize.

Troubleshooting

Below are the most common roadblocks and how to resolve them.

Problem 1 – adb connect returns “unable to connect to :5555”

  • Check network visibility: Ping the device from the PC (ping IP). If ping fails, the devices are on different subnets or the router blocks intra‑client traffic.
  • Firewall interference: On Windows, ensure “adb.exe” is allowed through the firewall (Control Panel → Windows Defender Firewall → Allow an app). On Linux, open port 5555 with sudo ufw allow 5555/tcp if you have a firewall enabled.
  • Port conflict: Some custom ROMs repurpose port 5555. Try a different port by running adb tcpip 5566 on the device (requires USB) and then adb connect IP:5566.

Problem 2 – Device shows as unauthorized

  • When the phone prompts “Allow USB debugging?”, tap Allow and check Always allow from this computer.
  • If the dialog never appears, toggle USB debugging off and on again, then reconnect.
  • On Android 11+, you may need to re‑pair the device (Settings → Developer options → Wireless debugging → Pair device with pairing code) and repeat the adb pair step.

Problem 3 – Connection drops after a few minutes

  • Some OEM power‑saving settings disable the ADB daemon when the screen turns off. Disable “Battery optimization” for the adb service: Settings → Battery → Battery optimization → All apps → adb → Don’t optimize.
  • Enable “Stay awake” while charging: Settings → Developer options → Stay awake.
  • Use the keep‑alive script from Step 7.

Problem 4 – Multiple devices, wrong one gets selected

When several phones are on the same network, adb devices may list them all. Use the -s flag with the exact IP address to target a specific device, e.g., adb -s 192.168.1.42:5555 install app.apk. You can also set an environment variable:

export ANDROID_SERIAL=192.168.1.42:5555

Now plain adb install will act on that device.

Step 9 – Resetting or revoking wireless debugging

If you ever suspect a compromised pairing, you can clear all authorized hosts:

  1. On the phone, go to Developer options → Wireless debugging → Paired devices.
  2. Tap the trash icon next to each entry or select “Clear all”.
  3. Optionally, toggle Wireless debugging off and on again to force the ADB daemon to restart.

On the PC, you can also delete the ~/.android/adbkey and adbkey.pub files to force a fresh key exchange on the next pair.

Advanced tip – Using multiple PCs with one device

Android’s wireless debugging supports up to five paired hosts. This is useful for a small dev team sharing a single test phone. Each PC generates its own RSA key pair, stored in ~/.android/. When a new PC tries to pair, the phone shows a distinct pairing code, preventing accidental cross‑pairing.

Summary

Wireless ADB turns a cumbersome USB cable into a flexible network bridge, letting you debug, install, and transfer files from anywhere on the same LAN. By following the steps above you’ll be able to:

  • Enable developer options and USB debugging safely.
  • Activate built‑in wireless debugging on Android 11+ or use the classic TCP/IP method on older releases.
  • Connect, verify, and keep the link alive without compromising security.
  • Troubleshoot common pitfalls such as network isolation, authentication failures, and power‑saving interruptions.

Remember to disable wireless debugging when you’re done, keep your PC’s firewall tidy, and always verify the IP address before connecting. With these practices, wireless ADB becomes a reliable part of any Android developer’s toolbox.

User Comments (0)

Add Comment
We'll never share your email with anyone else.