How to run?
Note: USB Debugging mode needs to be turned on before connecting the android device in any mode.
Wireless connection
To communicate with the android devices, scrcpy uses the Android debugging tool (adb). adb can connect to the device over TCP/IP. To connect wirelessly, connect the android device with the PC using USB first. Then, run the following command to enable TCP/IP on your device. The port 5555 is used here. You can use any port number you want.
adb tcpip 5555
Now, disconnect the android device from the PC and run the following command to connect with the device over TCP/IP. Replace IP_ADDR with the IP Address of your device.
adb connect IP_ADDR:5555
Now, run scrcpy as usual and it will start displaying your device’s screen wirelessly.
USB Connection
To connect the device using a USB Cable, You just need to connect the device to the PC and run scrcpy on command prompt:
scrcpy
After you run it, it will start displaying the device’s screen.
Mirror Android Screen to PC using scrcpy
scrcpy is a free and open-source Android screen mirroring application. It is a very lightweight application that provides display and control of Android devices connected over USB or TCP. It doesn’t require any root access. In this article, we are going to see how can we mirror the android device’s screen using it.