Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.91k stars 10.63k forks source link

Automatic wifi adb port search #3317

Open Manu99it opened 2 years ago

Manu99it commented 2 years ago

Is your feature request related to a problem? Please describe. It is. Read everytime the port and write it in the script is annoying

Describe the solution you'd like That scrcpy scan trough 37000-44000 port to get adb over wifi started

Describe alternatives you've considered Retrieve that port with an external script using, for example, nmap

tqk2811 commented 2 years ago

That scrcpy scan trough 37000-44000 port to get adb over wifi started

It take too much time for scan, and this feature request not for scrcpy.

Manu99it commented 2 years ago

That scrcpy scan trough 37000-44000 port to get adb over wifi started

It take too much time for scan, and this feature request not for scrcpy.

Well that could be done optionally. But yes I understand that

qgustavor commented 2 years ago

I don't think scrcpy needs this feature, in the other hand I wrote and have been using this script: it automatically scans trying multiple ports at the same time - so it's really fast - auto-connects and even have a progress bar with a ETA. Just call it before scrcpy and it gets the job done. Since it runs using Deno someone can even compile it as a .exe for Windows users for convenience.

Manu99it commented 2 years ago

@qgustavor I just tried it and it's really fast! Thank you