Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent Wireless scrcpy #5640

Open
fengffang opened this issue Dec 9, 2024 · 2 comments
Open

Persistent Wireless scrcpy #5640

fengffang opened this issue Dec 9, 2024 · 2 comments

Comments

@fengffang
Copy link

Does scrcpy's wireless connection feature require a USB connection and the adb tcpip 5555 command every time before connecting?

If so, that's not truly wireless, is it?

Is there a way to configure scrcpy once so that I don't have to use a USB connection every time?

@rom1v
Copy link
Collaborator

rom1v commented Dec 9, 2024

Does scrcpy's wireless connection feature require a USB connection and the adb tcpip 5555 command every time before connecting?

Not every time, only after a device reboot (by default, Android stops listening for debugging over TCP/IP after a reboot, and it cannot be changed without being root).

@fengffang
Copy link
Author

不是每次,只有在设备重新启动后(默认情况下,Android 在重新启动后停止侦听 TCP/IP 调试,并且在没有 root 权限的情况下无法更改)。
The device I use is realme GT5 pro, the system is Android 14, and it is rooted, but even if the phone is not restarted, it cannot be connected wirelessly again the next day.
I can connect wirelessly according to 【https://github.com/Genymobile/scrcpy/blob/master/doc/connection.md】 tutorial, but I can't connect directly again the next day.
At the same time, after the wireless connection is established, even if the scrcpy --turn-screen-off command is used, the phone will still turn off the screen, and the connection will be immediately disconnected when the screen is turned off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants