Scrcpy: Add multiple devices support to mirror

Created on 23 Mar 2018  路  19Comments  路  Source: Genymobile/scrcpy

can we make multiple devices to run mirroring?

Most helpful comment

Just run several scrcpy instances with the serials of the connected devices (as listed by adb devices).

scrcpy -s serial1
scrcpy -s serial2

All 19 comments

Just run several scrcpy instances with the serials of the connected devices (as listed by adb devices).

scrcpy -s serial1
scrcpy -s serial2

in second device, i am getting error like this :

/usr/local/Cellar/scrcpy/1.1/share/scr...shed. 0.8 MB/s (19334 bytes in 0.022s)
bind: Address already in use
2018-04-23 19:03:22.348 scrcpy[55445:333241] ERROR: Could not listen on port 27183

any workaround?

The port should be released almost immediately. As a workaround, you can change it easily with -p/--port:

scrcpy -p 1234
scrcpy --port 1234

Hello i have this same problem. If i plug in two cell phones and try to run Scrcpy i get errors saying

C:\adb>scrcpy
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1

Can someone please help me? I'm this weekend trying to record something with 2 phones and i can not.

Joseph

Hello when i tried that i get this error

C:\adb>scrcpy -s serial1
adb: error: failed to get feature set: device 'serial1' not found
ERROR: "adb push" returned with value 1

You need to replace serial1 by your device serial as displayed by adb devices.

okay my device is eaf8a975 What is the command to make that work? scrcpy eaf8a975 --port 1234? I'm a little lost.

I even tried this

C:\adb>scrcpy eaf8a975 --port 1234
ERROR: Unexpected additional argument: eaf8a975

scrcpy -s eaf8a975

Hello thank you that did work. It did come up both phones.

It would be nice if there was a single app that can put multiple devices on one app for recording and remote like scrcpy does.

Hi It did come up both phones using a port for each device , open a console for each device and assign a port

scrcpy -s {device name} -p {portNumber}

thx! @rom1v

Actually, unless you start them almost simultaneously, you don't need a distinct port for each.

Hi,
I have a Mac and I am forced to use a USB C Hub. When I connect two devices, using the Hub I get:
/usr/local/Cellar/scrcpy/1.4/share/scrcpy/s...le pushed. 1.6 MB/s (18922 bytes in 0.011s bind: Address already in use 2019-01-20 19:24:09.387 scrcpy[14196:362956] ERROR: Could not listen on port 27183

I assume that this is related to using the same usb port. Any work around? Thanks!

@moliveiraWIt The port should be used for ~1 second, so if you run several _scrcpy_ instances for different devices, you could wait 1 or 2 seconds between each.

Otherwise, just specify a port with -p/--port:

scrcpy -s serial -p port

sudo did the job for me:

scrcpy -s 234324fsdfasdf4r
sudo scrcpy -s 6058ediba07c4f8c4 -p 114

@tieorange You don't need sudo if you choose a port >= 1024.

https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html

pls, where I write "scrcpy -s (serial)"?

pls, where I write "scrcpy -s (serial)"?

cmd.exe

Was this page helpful?
0 / 5 - 0 ratings

Related issues

targor picture targor  路  3Comments

BloodPHamtOm picture BloodPHamtOm  路  3Comments

cordac1 picture cordac1  路  4Comments

swamikamal picture swamikamal  路  3Comments

sennight picture sennight  路  3Comments