Android Debug Bridge (ADB) is the standard tool developers and power users use to communicate with a device from a computer. By default it works over a USB cable, which is reliable but can become cumbersome when you need to test an app repeatedly, install many builds, or run shell commands while the phone is charging on a desk. Enabling ADB over Wi‑Fi removes the cable, lets you keep the device in a natural position, and speeds up the iterative workflow.
From a security perspective, ADB over Wi‑Fi is not a permanent configuration. It opens a network port that any device on the same subnet could try to access. The tutorial therefore emphasizes how to enable it safely, verify the connection, and disable it when you are done.
platform-tools zip from the official Android developers site and add the folder to your system PATH.7 times. You may be prompted to enter your PIN or pattern.Why? Developer Options expose the USB debugging toggle and, on newer Android versions, the native wireless debugging feature.
This setting authorizes the computer to send ADB commands. The first time you connect via USB, you will see an RSA key fingerprint prompt on the phone; tap Allow.
adb devices. You should see a line like 0123456789ABCDEF device. If not, verify the cable and driver installation.This initial USB connection is required to start the Wi‑Fi debugging session. After the first successful switch, you can disconnect the cable.
adb tcpip 5555 and press Enter. The command tells the ADB daemon on the device to listen on port 5555 over the network.restarting in TCP mode port: 5555.Port 5555 is the conventional ADB port, but you can choose any unused port (e.g., adb tcpip 5037) if you have a conflict.
192.168.1.42.Make a note of this IP; you will need it for the next command.
adb connect 192.168.1.42:5555 (replace the IP with yours).connected to 192.168.1.42:5555.adb devices again. The list should now show the device with the IP address and the state device.At this point you can unplug the USB cable. All further ADB commands will travel over the Wi‑Fi link.
Run a harmless command to confirm you have full control, for example:
adb -s 192.168.1.42:5555 shell getprop ro.product.model
The output should be the model name of your phone (e.g., Pixel 6). If you get an error like “device offline” or “no such device”, double‑check the IP address and ensure the phone is still on the same Wi‑Fi network.
Starting with Android 11, Google introduced a built‑in “Wireless debugging” option that avoids the temporary USB step. The workflow is slightly different but offers a QR‑code pairing method.
adb pair 192.168.1.42:37123 (the port shown on the phone will differ).adb connect 192.168.1.42:5555 (the device will now appear in adb devices).This method is more secure because the pairing process uses a temporary RSA key that expires after the session.
By default, the TCP/IP listener stops when the device reboots or when you manually turn off USB debugging. If you need a persistent Wi‑Fi ADB session (e.g., for a development workstation that stays on), consider one of the following approaches:
setprop service.adb.tcp.port 5555; stop adbd; start adbd on boot. This requires the “Run Shell” action with root or the “Grant permission” option via ADB.adb tcpip command internally and can be set to auto‑start. They still need the initial USB pairing.Remember that leaving the port open permanently exposes your device to anyone on the same network. Only use these tricks on trusted home or office Wi‑Fi.
adb.exe or open port 5555 in the router’s settings.adb binary on your PC is from the same SDK version as the device’s Android version (usually not a problem, but older platform‑tools can misbehave).adb tcpipThis occurs if another process is already listening on the chosen port. Choose a different port, e.g., adb tcpip 5556, and use the same port for the adb connect command.
Many phones turn off Wi‑Fi during deep sleep to save battery. Disable the “Wi‑Fi optimization” or “Turn off Wi‑Fi during sleep” option in the Wi‑Fi settings, or keep the screen on while debugging.
If you repeatedly see the “Allow USB debugging?” dialog, the device’s stored ADB keys have been cleared (common after a factory reset). Accept the prompt once and the key will be stored until you manually revoke it under Developer options > Revoke USB debugging authorizations.
Enabling ADB over Wi‑Fi is convenient, but it also widens the attack surface:
adb disconnect and toggle USB debugging off).For the highest security, use the native “Wireless debugging” feature on Android 11+; it generates a temporary pairing code and does not keep a persistent open port.
adb disconnect 192.168.1.42:5555 (replace with your IP).adb tcpip, you can also revert to USB‑only mode by running adb usb while the phone is still connected via USB.These steps close the network port and prevent accidental remote access.
Imagine you are developing a UI‑intensive app on a Pixel 6 running Android 13. You need to test layout changes dozens of times per day. Instead of plugging and unplugging the device, you follow the tutorial above:
adb tcpip 5555.192.168.0.101) and run adb connect 192.168.0.101:5555.adb install, adb logcat, and adb push commands without ever touching the cable.adb disconnect 192.168.0.101:5555 and turn off USB debugging.The workflow saves you minutes per build, reduces wear on the USB port, and keeps your desk tidy.
adb tcpip 5555.adb connect <IP>:5555.adb shell getprop command.Following these steps gives you a reliable, cable‑free ADB experience while keeping your device secure.









