Step-by-Step Guide: Wireless Android Mirroring with scrcpy
Step 1: Enable USB Debugging
- On your Android device, go to Settings > About phone > Tap 'Build number' 7 times to unlock
Developer options.
- Go to Developer options and enable 'USB Debugging'.
Step 2: Install adb and scrcpy
- Download the Android SDK Platform-Tools from the official Android developer site.
- Extract the Platform-Tools and place them in a directory of your choice.
- Add the path to the Platform-Tools directory to your system's PATH environment variable.
- Download scrcpy from its official GitHub repository, extract the files, and place them in a
convenient location.
Step 3: Connect Your Device via USB
- Connect your Android device to your Windows PC using a USB cable.
- Open Command Prompt and navigate to the directory where scrcpy is located.
Step 4: Enable TCP/IP on Your Device
- In Command Prompt, run the command:
adb tcpip 5555
- This sets your device to listen for adb connections over TCP/IP on port 5555.
Step 5: Find Your Device's IP Address
- On your Android device, go to Settings > Wi-Fi.
- Tap on the Wi-Fi network you're connected to and note the IP address (e.g., [Link]).
Step 6: Connect to Your Device Wirelessly
- In Command Prompt, run the command:
adb connect [IP_ADDRESS]:5555
- Replace [IP_ADDRESS] with the IP address noted earlier (e.g., [Link]).
Step 7: Start scrcpy Wirelessly
- Once connected, start scrcpy by typing:
scrcpy
- Your device's screen should now be mirrored wirelessly on your PC.
Step 8: Optimize Performance (Optional)
- To improve quality and reduce lag, start scrcpy with:
scrcpy --max-size 1080 --bit-rate 16M --max-fps 60
Step 9: Disconnect the Wireless adb Connection
- In Command Prompt, run the command:
adb disconnect [IP_ADDRESS]:5555
- This command stops the adb session over Wi-Fi, disconnecting your device.
Step 10: Reconnect via USB (Optional)
- To fully revert to USB mode, reconnect your device via USB and run the command:
adb usb