Search code examples
androidubuntuadb

Set ADB in TCP/IP mode: device not found?


I've already used this commands before to set ADB to listen on TCP/IP, but this time I'm stunned. The problem is that the error it's throwing just makes no sense:

$ adb tcpip 5555
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found

In fact even trying to put it in USB mode doesn't work either, with same error:

$ adb usb
error: device not found

Just for the info, the adb help says that:

adb usb                      - restarts the adbd daemon listening on USB
adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port

I've made no changes in Android SDK (no updates). Any help would be appreciated.


Solution

  • The issue was that I had to have an Android device connected (same device or another device) by USB to be able to execute

    $ adb tcpip 5555
    restarting in TCP mode port: 5555
    

    Then I can just unplug this USB device and connect to the other devices on the LAN over TCP.

    Just makes no sense at all.