Skip to content
Home » Android » How to Set Up and Use ADB over Wi-Fi (Windows & Mac)

How to Set Up and Use ADB over Wi-Fi (Windows & Mac)

ADB enables you to execute commands to transfer files, install apps, and access system files and logs on your Android phone, tablet, or Wear OS smartwatch. Typically, ADB requires a USB connection between your device and computer. Constantly plugging and unplugging your Android phone to execute ADB commands can be irritating. However, the introduction of ADB over Wi-Fi has eliminated this restriction. Let’s see how to harness the power of ADB wirelessly by setting up ADB over Wi-Fi on Windows, Mac, and Linux systems.

ADB over Wi-Fi uses the same protocol as ADB via USB but instead communicates through a wireless network connection. It works by sending commands from the computer to the device’s operating system via a terminal or command prompt window. This means that both devices must be connected to the same Wi-Fi network for the connection to be established.

Once connected, you can execute any ADB command on your Android phone or tablet wirelessly without a USB connection.

Steps to Set up ADB on Computer and Android

Please note that the steps and screenshots in this tutorial are from Samsung Galaxy S23 Ultra. Depending on your device’s OEM, the location of Developer options, Build number, and IP address may differ.

  1. Download the latest Android SDK Platform Tools for Windows, Mac, and Linux and extract it on your desktop.
  2. Enable the Developer Options by going to your phone’s Settings > About phone > Software information. Then scroll down until you see the Build number and tap on it seven times until you see the message “Developer mode has been enabled.”tab build number 7 times to enable developer mode on android
  3. If you do not find the Build number in the location mentioned above, open device Settings, tap the search box, and type “Build number” to access it.
  4. Now go back to the Settings menu, scroll down to Developer options, tap it, and enable USB debugging.allow usb debugging on android
  5. ADB can’t communicate with your Android phone or tablet with a locked screen. Go to Settings > Display and set the Screen timeout to 5-10 minutes.
  6. Now open the ‘platform-tools’ folder and launch a command window with the Android SDK platform tools path. You can do that in 2 ways:
    1. Right-click in the ‘platform-tools‘ folder window and select the Open in Terminal option from the context menu.Open terminal in the platform tools folder
    2. Type “powershell” or “cmd” in the address bar of the ‘platform-tools‘ folder and hit the Enter key.launch powershell in android platform tools folder
  7. On Mac, you can open Terminal by searching for it in Spotlight Search or locating it in Applications > Utilities.
  8. It’s time to connect your Android device to your PC using a USB cable.
  9. Type the following command in the command window and press Enter.
    adb devices
  10. Tap on Allow when prompted on your device to authorize ADB access on your Android phone.
  11. This will show a list of connected devices with their device ID or serial number. If your device is listed, then it is connected properly.adb devices command in windows powershell

Steps to Set up ADB or Wi-Fi

Now that you have configured a tethered ADB connection, it is time to set up ADB over Wi-Fi so that you can use commands wirelessly. Follow the detailed steps given below:

  1. To set up ADB over Wi-Fi on your Android device your device must be connected to the same Wi-Fi network as your computer.
  2. Go to Settings > About phone > Status information and note down the IP address of your  Android device.ip address of android device
  3. Navigate to the folder where you have ADB installed. I assume you have ‘platform tools’ extracted on the desktop.
  4. Launch a Powershell window with the path of the Android SDK platform-tools folder as shown below.platform folder path in windows powershell
  5.  Now, execute the adb devices command, and when your device is shown as listed, issue the following command.
    adb tcpip 5555

    connected android device to adb wirelessly

  6. ADB will restart in TCP (Transmission Control Protocol) to facilitate wireless connection between your phone and computer.
  7. It’s time to execute the adb connect command followed by your phone IP address.
    adb connect 192.168.1.8

    settings up adb over wi-fi on windows

  8. ADB will be connected to your phone’s IP address.
  9. You can now unplug the USB cable. To check if your Android device can now connect to ADB wirelessly, execute the adb devices command again.adb device connected over wi-fi

That’s it!

Now that you have successfully set up ADB over Wi-Fi, you should try the ADB commands to make calls and send messages without touching your Android device. You should also check out our list of ADB Shell commands with examples to explore and harness the full potential of ADB.

Common Issues with Setting up ADB over Wi-Fi

We have listed some troubleshooting tips in case you encounter issues while setting up or using ADB over Wi-Fi. Make sure to follow them if you face any problems during the process.

  • Enable USB debugging on your Android device.
  • Connect your PC and Android device to the same Wi-Fi network for ADB over Wi-Fi to work.
  • Make sure the IP address you used is correct.
  • Restart the ADB server using the adb kill-server command.
  • Try rebooting your PC and Android device.
  • Download and install the latest Android SDK Platform Tools on your computer.
  • Try a different USB cable.

If none of the above solutions work for you and you can’t use ADB over Wi-Fi, you can try WebADB to run ADB commands wirelessly or from your web browser.

Note: Since ADB is a plain text protocol, using ADB over Wi-Fi may not be secure. To avoid opening up your device to hackers, we recommend you use ADB over Wi-Fi in a personal and secure network environment.

Rakesh Shukla

Rakesh Shukla

Rakesh is a geek by heart with an ardent passion for all things tech. From a young age, he was drawn to the world of technology and found himself constantly tinkering with gadgets and devices. He enjoys learning and discovering the newest trends in the world of Android, iOS, and Windows.View Author posts