Skip to content

Instantly share code, notes, and snippets.

@diegodorado
Created April 7, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegodorado/78caeccc97b08e87afa9f958c0868f61 to your computer and use it in GitHub Desktop.
Save diegodorado/78caeccc97b08e87afa9f958c0868f61 to your computer and use it in GitHub Desktop.
How to get wirelessly your android screen on your desktop

Connect your device through usb and enable adb over TCP/IP: adb tcpip 5555

  1. Connect the device to the same Wi-Fi as your computer
  2. Get your device IP address (in Settings → About phone → Status)
  3. Connect to your device: adb connect DEVICE_IP:5555
  4. Run scrcpy

To switch back to USB mode: adb usb. Performance is not the same as over USB. Default bit-rate is 8Mbps. To change it: scrcpy --bit-rate 2M --max-size 800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment