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

How to wirelessly view 2 devices at the same time #945

Closed
MikePlayzHD opened this issue Nov 23, 2019 · 7 comments
Closed

How to wirelessly view 2 devices at the same time #945

MikePlayzHD opened this issue Nov 23, 2019 · 7 comments

Comments

@MikePlayzHD
Copy link

So i have been able to only view one device wired and one wireless using the scrcpy -s command on linux

@rom1v
Copy link
Collaborator

rom1v commented Nov 23, 2019

List them with adb devices. You should be able to start scrcpy -s for each one.

@ihwf
Copy link

ihwf commented Nov 26, 2019

List them with adb devices. You should be able to start scrcpy -s for each one.

when I run one, and I start another with scrcpy -s it error !
This is error info:
bind: Address already in use
scrcpy[15070:1261952] ERROR: Could not listen on port 27183

@rom1v
Copy link
Collaborator

rom1v commented Nov 26, 2019

It listens only until the device is connected, so if you start the second one few seconds after the first one is connected, it should work.

Alternatively, you could use a different port for the other device: scrcpy -p 27184.

@rom1v
Copy link
Collaborator

rom1v commented Nov 26, 2019

I think I will improve the -p option to support a range: -p start:end, with a default range 27183:27200, so that it try the ports sequentially until one works. That would avoid this kind of problem.

@ihwf
Copy link

ihwf commented Nov 26, 2019

I think I will improve the -p option to support a range: -p start:end, with a default range 27183:27200, so that it try the ports sequentially until one works. That would avoid this kind of problem.

Great! It work! Thanks! It's a good idea about this change

@rom1v
Copy link
Collaborator

rom1v commented Jan 18, 2020

Implemented in dev (see #951).

@rom1v rom1v closed this as completed Jan 18, 2020
@rom1v
Copy link
Collaborator

rom1v commented Apr 29, 2020

Released in v1.13.

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

3 participants