Can't connect to Android via ADB over wifi - Do I need root access?

前端 未结 10 1387
梦毁少年i
梦毁少年i 2020-12-14 21:32

I\'m basically trying to do this: How can I connect to Android with ADB over TCP? with the Droid X2.

I have USB Debugging on, and my phone is plugged in via USB. The

相关标签:
10条回答
  • 2020-12-14 22:04

    Symptoms

    With my phone, this problem happens a lot. I get these symptoms:

    • ping x.x.x.x times out
    • adb connect x.x.x.x times out ("unable to connect")
    • telnet x.x.x.x 5555 times out

    Workaround

    I need to disable and re-enable WiFi on my phone before running adb connect on my computer. Then I can both ping, telnet, and adb connect to the phone.

    I'm using a Sony Xperia M C1904 running CyanogenMod 12.1.

    0 讨论(0)
  • 2020-12-14 22:04

    I hope this will helpful and worked for me

    1. Disconnect phone from studio.
    2. Go to developer options in phone.
    3. Under USB debugging, there is an option to Revoke USB debugging authorisations.
    4. Then click ok.
    5. Then again connect phone to studio via USB.
    6. Then click on connect button in ADB Wifi.
    7. Now you can run and debug apps without USB
    0 讨论(0)
  • 2020-12-14 22:06

    I couldn't connect adb to my Nexus5 Phone over 5Ghz WLAN but it did work with the slower 2,4 Ghz instantly.

    0 讨论(0)
  • 2020-12-14 22:12

    The problem with me for my Samsung Tab 1 was an adb process was already running on port 5037 on my Xubuntu 14.04 machine, which I was unaware about until I typed pgrep -l -u username. To fix this, I terminated the adb process using pkill adb, navigated to my platform tools folder and ran adb tcpip 5037 and then connected to my device using the 5037 port number. Boom! Worked like a charm.

    0 讨论(0)
  • 2020-12-14 22:15

    Your device hasn't to be rooted. I've developed a plugin for IntelliJ/Android Studio to connect your device over wifi pressing just one button. Here is the code and here the plugin ready to be used.

    The usage is quite simple. Here you have a gif:

    0 讨论(0)
  • 2020-12-14 22:15

    Android wifi ADB was earlier working on my IDE but after Updating Android Studio (my current is Android Studio 3.3) it is not working and always prompt as "Unable to connect to device......Same network"

    After spending much time i was unbale to resolve the issue.

    Then i tried - WIFI ADB ULTIMATE by

    https://github.com/huazhouwang/WIFIADB/tree/master/WIFIADBIntelliJPlugin

    It worked for me.

    0 讨论(0)
提交回复
热议问题