Wireless USB Debugging for Android Studio in MAC

19,825

Solution 1

1- connect your PC and Mobile to same network (WIFI)

now find IP

-open setting > WIFI >info of connected wireless network and then get STATIC IP from there

enter image description here

2- Now open teminal and then goto PATH paltform-tools in SDK then fire below command

-Connect the device via USB and make sure debugging is working. -go to developer options from settings and follow below snap shots enter image description here

3 - now in terminal ./adb connect <DEVICE_IP_ADDRESS>:5555 (if your using windows then remove ./)

you show this output - connected to 192.168.1.109:5555

now Disconnect USB . and perform below command to start wireless debugging

adb -s <DEVICE_IP_ADDRESS>:5555 usb

4- for disconnect device follow below commands

adb disconnect <DEVICE_IP_ADDRESS>:5555

Solution 2

Almost same steps as the Dharmik Ghori's answer

Just that in step 3 you do: ./adb tcpip 5555 instead of ./adb connect <DEVICE_IP_ADDRESS>:5555.

Solution 3

  1. Firstly, connect your device to mac with cable.
  2. Open the terminal and write Library/Android/sdk/platform-tools/adb tcpip 5555. If u can't then right only cd then write Library/Android/sdk/platform-tools/adb tcpip 5555
  3. Then write Library/Android/sdk/platform-tools/adb connect YOUR_DEVICE_IP:5555
  4. After that you can see connected response
  5. You can disconnect the cable and debug with WIFI.

Solution 4

Use this jetbrain plug-in. Connect your device using a USB cable and press the Android WiFi ADB button. Once the device is connected over WiFi you dont need USB.

Share:
19,825
HiteshGs
Author by

HiteshGs

Updated on June 15, 2022

Comments

  • HiteshGs
    HiteshGs almost 2 years

    Hello i want to connect my android in debugging mode with android studio

    without usb cable

    i am using mac os

  • vijeth.ag
    vijeth.ag almost 7 years
    Step 3: had to do adb connect <MOBILE-IP-ADDRESS>:5555
  • gyurisc
    gyurisc over 6 years
    Tried to fix the adb connect <MOBILE_IP_ADDRESS>:5555 line, but it seems that the markdown already contains this change, just not showing up...
  • gaurav414u
    gaurav414u over 6 years
    I don't know why but this doesn't seem to be working. Rather, I did adb tcpip 5555 disconnected usb adb connect <MOBILE_IP_ADDRESS>:5555 It got connected then
  • Arun kumar
    Arun kumar over 3 years
    getting connect refused error followed all the steps failed to connect to '192.168.32.247:5555': Connection refused
  • sameeksha sahib
    sameeksha sahib almost 2 years
    is it possible to connect first time without USB? new MacBook does not have USB port :(