- Enable Wireless debugging in Developer options.
- Click on Pair device with pairing code.
- On the computer,
adb pair followed by the IP address and port number as shown on the device, for example adb pair 192.168.1.322:49014. This will immediate challenge you to provide the six-digit pairing code shown on the device.
- Now invoke
scrcpy --tcpip=192.168.1.322:49014 (or you could just as well use its serial number as shown by adb devices instead, scrcpy -s adb-HJBF6XUO-jtwWkn._adb-tls-connect._tcp
adb
scrcpy
terminal
Linux
Android