Skip to content

Instantly share code, notes, and snippets.

@7wells
Last active October 26, 2022 09:26
Show Gist options
  • Save 7wells/2433be8755ca0d133e5d1b9413ca96b4 to your computer and use it in GitHub Desktop.
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
# 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