Estoy recibiendo mensajes muy contradictorios al intentar ejecutar scrcpy de forma inalámbrica.
$ adb connect 192.168.1.200:5555
connected to 192.168.1.200:5555
$ adb devices
List of devices attached
192.168.1.200:5555 device
$ scrcpy
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
adb server version (41) doesn't match this client (39); killing...
* daemon started successfully
ERROR: Could not find any ADB device
ERROR: Server connection failed
$ scrcpy --tcpip
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
ERROR: Could not find any ADB device
ERROR: Server connection failed
$ adb devices
adb server version (39) doesn't match this client (41); killing...
* daemon started successfully
List of devices attached
En algún momento logré conectarme y ejecutar scrcpy. Me desconecté y traté de ejecutarlo de nuevo pero esta vez no hubo suerte. No puedo entender lo que está causando esto.
$ whereis adb
adb: /usr/bin/adb /usr/share/man/man1/adb.1.gz
$ adb version
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
Me conecté por USB para volver a habilitar adb sobre TCP/IP. La IP del dispositivo no aparece. Anteriormente el ID del dispositivo y la IP aparecían.
$ scrcpy --tcpip
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
INFO: Switching device J6AXB763C036R6E to TCP/IP...
ERROR: Device IP not found
ERROR: Server connection failed
$ adb tcpip 5555
adb server version (39) doesn't match this client (41); killing...
* daemon started successfully
restarting in TCP mode port: 5555
$ adb devices
List of devices attached
J6AXB763C036R6E device
Lo intenté de nuevo y fallé.
$ adb kill-server
$ adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
$ adb devices
List of devices attached
$ adb connect 192.168.1.200:5555
connected to 192.168.1.200:5555
$ adb devices
List of devices attached
192.168.1.200:5555 device
$ scrcpy
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
adb server version (41) doesn't match this client (39); killing...
* daemon started successfully
ERROR: Could not find any ADB device
ERROR: Server connection failed