I'm getting very contradicting messages trying to run scrcpy wirelessly.
$ 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
At some point I succeeded to connect and run scrcpy. I disconnected and tried to run it again but no luck this time. I can't wrap my head around what's causing this.
$ 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
I connected via USB to reenable adb over TCP/IP. Device IP doesn't show up. Previously device ID and IP were listed.
$ 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
I tried again and failed.
$ 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
/usr/bin/adb --version
? -> Please edit your question and add the output there not here in comments.