Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.78k stars 10.61k forks source link

How to I setup this to run in wireless mode? #5363

Open rthfhgyhy567 opened 1 week ago

rthfhgyhy567 commented 1 week ago

I have already enabled wireless ADB and confirmed mirroring works over USB. Now I want to set it up wirelessly. The instructions state use these options to connect to the device but doesn't explain where to put them. Not everyone in this world is a programmer or a master geek. Some more detailed instructions as to where to put this code would be nice. I tried pasting them into the "scrcpy-console.bat" (and changing the IP to the actual one) but it just says connection failed when I try to launch scrpy. Also what is with such a gibberish name? Makes it hard to recommend something when I can't even pronounce the name. Please make the name less autistic too.

scrcpy --tcpip=192.168.1.1 # default port is 5555 scrcpy --tcpip=192.168.1.1:5555

rom1v commented 1 week ago

Some more detailed instructions as to where to put this code would be nice.

https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md#run

Also what is with such a gibberish name?

Says rthfhgyhy567 😄

erzurum2525 commented 1 week ago

Enable wireless debugging, click on wireless debugging. click pair via code and open a terminal at your PC. first start adb services by typing "adb devices" after the daemon successfully starts, type adb pair ip adress:port. your IP adress and port is at the pairing page on your phone. should look something like this: 192.xxx.xx.xx:321941. it will ask for pairing code, enter your pairing code. now type adb devices again to see if its connected then run scrcpy edit: both devices should connect to the same WIFI and I am about to post a video on it so stay tuned. I will send the link here after the edit is done edit2: I am too lazy to make a vid rn, you can look how to pair adb using adb pair command on youtube. after the pair is done you can just start scrcpy.exe

SangonomiyaRen commented 1 week ago

first step you must be pairing your device to pc with same network, now open developer setting > wireless debugging and tap "pair with code"

next, on pc type adb pair HOST[:PORT] [PAIRING CODE] example : adb pair 192.168.xxx.xxx:xxxxx xxxxxx if paired, you can continue using adb connect HOST[:PORT] example : adb connect 192.168.xxx.xxx:xxxxx

now last step please check using adb devices on terminal, if you see ip address you successfull connect your phone to pc using wireless adb, if not, try again

after connected, you can run scrcpy-console.bat file