-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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 to remote server doesn't error, but doesn't work either #3300
Comments
You start the server on port 5038:
But connect on port 32323:
Is there a port redirection from 32323 to 5038 somewhere? I think you'd need something like: ADB_SERVER_SOCKET=tcp:172.24.20.11:5038 scrcpy --tunnel-host=172.24.20.11 |
Yes, the
I tried all of the combinations, setting |
Do note that |
There are several connections involved. First, scrcpy want to connect to your adb server, accessible at 172.24.20.11:32323 (which points to port 5038 on the remote). Once it is connected, it can push the server and execute it (so it lists the phone model, etc). This one works apparently. Then this server starts listening on an abstract unix socket This socket is accessible on the remote (where your adb server runs) on port 27183 (by default, you can change with |
That does it, I forwarded port Just trying to understand the whole setup - the So if I make them different, I'd have to map port I tried it out and it works, but I am not sure I understand why. A tunnel |
There is a first tunnel between the adb server and the device (tcp:27183 by default -> "localabstract:scrcpy"), then your docker tunnel (tcp:XXXX -> tcp:27183). Scrcpy must connect to XXXX to access the device socket (through the 2 tunnels): even if it executes |
That clears it up, thanks! Triple thanks - for the quick response, for a great explanation, and for a great tool! :) |
Environment
archlinux
, remote:amazon linux 2
(docker)1.23
pacman
12
Describe the bug
I'm not even sure if I'm holding it right, I couldn't figure it out from the docs.
I have an
adb
on a remote server I can connect to withadb -H <ip> -P <port>
, and I connect to it withscrcpy
, but I get no screen, no errors, and I don't know how to debug it.The server was started with:
And I try connecting to it with:
I don't have
scrcpy
installed on the remote server, only on the local host, and the port32323
is forwarded and mapped to5038
on whichadb
is running (and as I said,adb -H <ip> -P <port>
works)What more can I provide?
The text was updated successfully, but these errors were encountered: