Last active
October 26, 2022 09:26
-
-
Save 7wells/2433be8755ca0d133e5d1b9413ca96b4 to your computer and use it in GitHub Desktop.
How to use scrcpy and adb via Wifi to mirror mobile device screen on PC/laptop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect mobile device to PC/laptop via USB | |
# Connect to your Wifi network (PC/laptop and mobile device must be in the same Wifi) | |
# Enter command: | |
adb kill-server | |
# Enter command: | |
adb usb | |
# Enter command: | |
adb tcpip 5555 | |
# Unplug USB cable | |
# Enter command: | |
adb connect <IP of your mobile device> | |
# Enter command: | |
adb devices #[note: should show 2 device names, one of them formerly connected via USB, the other via Wifi) | |
# Enter command: | |
scrcpy #[note: option -e for mobile device connected via Wifi] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment