New To The Forum? Click Here To Read The How To Guide. -- Developers Click Here.

ADB | Wireless | SCRCPY - adb device disappears on usb disconnect

EloDesignCoEloDesignCo Posts: 1
`reference git issue:`

I have been trying to get SCRCPY working over wireless with the Go, but haven't had much luck. It works fine over USB and I could go down the Vysor route but I'd prefer to stay OS at the moment.

Steps initially taken to go wireless
  1. Connect the device to the same Wi-Fi as computer
  2. Get device IP address: adb shell ip addr show wlan0
  3. Enable adb over TCP/IP on device: adb tcpip 5555
  4. Connect to device: adb connect DEVICE_IP:5555 (replace DEVICE_IP)
  5. adb devices: shows two connections, one usb and one to the ip
  6. Unplug device

At this point I'm expecting to be able to run;
7. Run scrcpy: scrcpy -s

However, both devices are disconnected when pulling the usb cable out.
As an alternate permutation: If I leave the usb connected and run step #7, scrcpy loads and then if I pull the usb - it disconnects.

Upon further testing and after unplugging the USB, I can still use: adb connect DEVICE_IP:5555 and connect to the device. Can also ping the device also and get a response.

It appears to just disappear from the list of devices within ADB (causing SCRCPY to fail to launch as there's no device present in ADB).

I think it has something to do with MAC USB enumeration killing ADB, not the device disconnect itself killing the ADB.

Is anyone chasing a similar issue and resolved by chance?

[disconnect USB]

$ adb connect
connected to

$ ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=757.020 ms
64 bytes from icmp_seq=1 ttl=64 time=210.854 ms
64 bytes from icmp_seq=2 ttl=64 time=768.758 ms

$ scrcpy
adb: error: failed to get feature set: no devices/emulators found
2018-07-03 16:40:33.600 scrcpy[37756:4675145] ERROR: "adb push" returned with value 1

$ adb devices -l
List of devices attached

[reconnect USB]

$ adb devices -l
List of devices attached
1KWPH813818187         device usb:336592896X product:vr_pacific model:Pacific device:pacific transport_id:5     device product:vr_pacific model:Pacific device:pacific transport_id:6


  • CoolGamesNetCoolGamesNet Posts: 5
    edited July 6
    I was able to get it working on Ubuntu Studio by building from source at github
    Thanks, I need that...

  • CrimsonSky3000CrimsonSky3000 Posts: 3
    Getting the same error. Any fix for windows?
Sign In or Register to comment.