Real-Time Android Device Control and Mirroring Over Wi-Fi with Scrcpy#dev
Take control of your Android device wirelessly with Scrcpy and easy-to-follow tutorial.
This blog will cover a step by step tutorial for controlling an android device from a PC over Wi-Fi.
- Android Version >= 11
[PC] Install scrcpy. For linux, run
apt install scrcpy.
[PC] Download the Android SDK Platform Tools from here. This is a command-line tool that allows us to use
[PC] Extract and open the downloaded file. Then open terminal in same directory (in
[Android] Enable Developers options (skip if already enabled): Go to
About phone/devicethen click
Build number7 times.
[Android] Enable Wireless debugging from Developers options (available in Settings). You are required to connect to a Wi-Fi Network.
[Android] Click Pair device with pairing code inside Wireless debugging menu. A modal will appear with Wi-Fi pairing code and IP address & Port.
./adb pair [IP address & Port] [Wi-Fi pairing code]. Once paired, your device will appear in Paired Devices section of Wireless debugging menu.
./adb connect [IP address & Port]. Note that
Portfor connecting is different from
Portfor pairing. You can find the IP address & Port for connecting in Wireless debugging menu. Once connected,
connected to [IP address & Port]will be displayed in terminal.
scrcpy. An application will run where you can see and control your connected Android device. Also, check here for optional parameters with
scrcpyto configure for your use case.