To start scrcpy
wirelessly via Command Prompt (CMD) on Windows, follow these steps:
Prerequisites:
- Android Device: Ensure your Android device is connected to the same Wi-Fi network as your Windows PC.
- ADB (Android Debug Bridge): Make sure ADB is installed and configured on your PC.
Steps to Start scrcpy
Wirelessly:
Connect Android Device via USB (First Time Setup)
- Connect your Android device to your PC via USB.
- Open Command Prompt (CMD) on your PC.
Verify ADB Connection
- Run the following command in CMD to verify your device is recognized
adb devices
You should see your device listed. If not, troubleshoot your ADB setup.
Start ADB over TCP/IP
- Run the following command to start ADB in TCP/IP mode (default port is 5555):yaml
adb tcpip 5555
Disconnect USB and Get Device IP Address
- Disconnect your Android device from the USB.
- Find out the IP address of your Android device. You can usually find this in Settings > About phone > Status or Wi-Fi settings.
Start scrcpy
Wirelessly
Open Command Prompt (CMD) and navigate to the directory where
scrcpy
is located using thecd
command. For example:bashcd C:\path\to\scrcpy
Replace
C:\path\to\scrcpy
with the actual path where you havescrcpy
installed.Once inside the
scrcpy
directory, you can startscrcpy
wirelessly using the following command:cssscrcpy -s <device-ip-address>:5555
Replace
<device-ip-address>
with the actual IP address of your Android device.
Using scrcpy
Wirelessly
- After executing the command,
scrcpy
should connect to your Android device wirelessly, and you should see your Android screen mirrored on your PC.
Interaction with scrcpy
- You can interact with your Android device using your PC's keyboard and mouse while
scrcpy
is running. Use your mouse to click, scroll, and drag, and use the keyboard for typing and controlling apps.
Comments
Post a Comment