├── .gitattributes ├── README.md ├── scrcpy-wireless-connect.bat └── scrcpy-wireless-setup.bat /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # scrcpy-wireless-tutorial 2 | A document and simple scripts to connect to your Android device via scrcpy wirelessly. 3 | 4 | ### If you don't use Windows... 5 | This guide will focus on Windows, but you can find information for other OS's here: 6 | * https://github.com/Genymobile/scrcpy 7 | * https://www.genymotion.com/blog/open-source-project-scrcpy-now-works-wirelessly/ 8 | 9 | # First things first, get scrcpy working over USB 10 | 1. Set up USB debugging for your device, and ensure you meet the other requirements: https://github.com/Genymobile/scrcpy#requirements 11 | 2. Plug your device into your computer. If USB debugging is set up correctly, it should prompt you to trust the computer. 12 | 2. Download the latest version, prebuilt for Windows: https://github.com/Genymobile/scrcpy#windows. Extract the folder. 13 | 3. Double click ````scrcpy.exe````. A cmd prompt window will open, then your phone screen should appear. Confirm you can operate your phone at this stage. 14 | 15 | If you can't see your device screen, you might need to unlock the device at first. If your screen locks while you're connected, you can unlock your device with a right click, I believe. 16 | 17 | Everything working? Great! 18 | 19 | # Alright, now let's do it wirelessly 20 | 1. Download this repository (Green ````Code```` button -> Download ZIP), extract, and copy ````scrcpy-wireless-setup.bat```` and ````scrcpy-wireless-connect.bat```` to the extracted scrcpy folder from earlier. 21 | 2. Double click ````scrcpy-wireless-setup.bat```` and follow the instructions. Now your device can connect to adb wirelessly. Unplug your device from your PC. 22 | 3. Double click ````scrcpy-wireless-connect.bat```` and follow the instructions. You can find your device's IP address from Settings -> About. Make sure your device is on the same network as your Windows computer. 23 | 4. Profit! 24 | 25 | If you plan to connect to this device often, I recommend allocating it a static IP address via your router settings. That way you can create shortcut to open it easily. 26 | 27 | You can right-click and edit ````scrcpy-wireless-connect.bat```` to set a default IP address and quality setting. Then you can simply double click this .bat file (or add a shortcut) to connect to your device! 28 | -------------------------------------------------------------------------------- /scrcpy-wireless-connect.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo. 3 | 4 | REM Add your device's IP address on the line below if you want to auto-connect when you launch this file 5 | set ip="" 6 | 7 | if %ip% EQU "" set /p ip="Enter Android Device IP Address (eg. 192.168.1.43): " 8 | 9 | echo. 10 | echo Connecting adb over TCP/IP on IP: %ip%... 11 | adb connect %ip%:5555 12 | 13 | REM Add y or n here (NO QUOTES!) to skip the quality prompt in future. 14 | set lower_quality= 15 | 16 | echo. 17 | if [%lower_quality%]==[] set /P lower_quality="Lower bitrate and resolution for clearer/faster response? [Y/N]" 18 | 19 | echo. 20 | if /I "%lower_quality%" EQU "Y" scrcpy --video-bit-rate 2M --max-size 800 21 | if /I "%lower_quality%" EQU "N" scrcpy -------------------------------------------------------------------------------- /scrcpy-wireless-setup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | echo. 4 | echo This script will set up your Android device to use adb wirelessly. 5 | echo Make sure your device is plugged in via USB, with USB debugging enabled. 6 | echo Make sure you have selected to trust this computer. 7 | echo. 8 | 9 | pause 10 | 11 | echo. 12 | echo Enabling adb over TCP/IP on your device... 13 | adb tcpip 5555 14 | 15 | echo. 16 | echo Done! (Unless you got an error!) 17 | pause --------------------------------------------------------------------------------