-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
scrcpy --tcpip doesn't setup a connection correctly when wireless debugging runs on a different port than 5555 #3591
Comments
rom1v
added a commit
that referenced
this issue
Nov 24, 2022
If the current adb port is not 5555 (typically it is 0 because it is not in TCP/IP mode), --tcpip automatically executes (among other commands): adb tcpip 5555 In case adb was already listening on another port, this command forced to listen on 5555, and the connection should still succeed. But this reconfiguration might be inconvenient for the user. If adb is already in TCP/IP mode and listens on another port, use that port without reconfiguration. Fixes #3591 <#3591>
I'm surprised that it won't succeed, because in that case scrcpy executes Anyway, I submitted a PR to use the current adb port if any: #3592. Please review/test. |
rom1v
added a commit
that referenced
this issue
Nov 24, 2022
If the current adb port is not 5555 (typically it is 0 because it is not in TCP/IP mode), --tcpip automatically executes (among other commands): adb tcpip 5555 In case adb was already listening on another port, this command forced to listen on 5555, and the connection should still succeed. But this reconfiguration might be inconvenient for the user. If adb is already in TCP/IP mode and listens on another port, use that port without reconfiguration. Fixes #3591 <#3591>
rom1v
added a commit
that referenced
this issue
Nov 24, 2022
If the current adb port is not 5555 (typically it is 0 because it is not in TCP/IP mode), --tcpip automatically executes (among other commands): adb tcpip 5555 In case adb was already listening on another port, this command forced to listen on 5555, and the connection should still succeed. But this reconfiguration might be inconvenient for the user. If adb is already in TCP/IP mode and listens on another port, use that port without reconfiguration. Fixes #3591 <#3591>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Describe the bug
Phone connected via USB, visible by ADB:
Running
scrcpy --tcpip
to do the heavy lifting ("It will automatically find the device IP address, enable TCP/IP mode, then connect to the device before starting") for me:... But it won't succeed because wireless debugging runs on a different port. I had to
adb tcpip 5555
to change wireless debugging port to 5555 and only then wouldscrcpy --tcpip
succeed.Feature request
The text was updated successfully, but these errors were encountered: