Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.03k stars 10.01k forks source link

Multiple connection and to another cell phone #4861

Open wolfmarcos opened 4 weeks ago

wolfmarcos commented 4 weeks ago

I have two questions: 1) I want to connect two mobile devices simultaneously to the PC, could this be done? Would you explain to me how I could do it? 2) If I can connect a cell phone with a type C output to another cell phone with a type C output, I have the cable, and through this I can control the other mobile device that has a broken screen. Thanks in advance, those are my two questions.

rom1v commented 4 weeks ago

1) https://github.com/Genymobile/scrcpy/blob/master/doc/connection.md#selection

2) No

wolfmarcos commented 4 weeks ago

Ok, the solution will be to connect multiple devices via Wi-Fi, but that gives me a doubt and a lot of stress, that's why this question is, is there a way to leave it connected via Wi-Fi after restarting the PC? Since I have to do the same thing on each device once I restart, is there any possibility of leaving it connected to always run it from that same PC?

rom1v commented 4 weeks ago

leave it connected via Wi-Fi after restarting the PC

If you reboot the pc, you can still connect to the devices. However, if you reboot a device, adb tcpip 5555 must be executed once.

wolfmarcos commented 3 weeks ago

Ok, thank you, but there is no way to leave that port open on the cell phone even if you restart the device without reconnecting it via USB, or I could enable that port from the cell phone to connect it directly to the PC. I mean there is some way to leave it enabled. port 5555 from the same cell phone would be another option but how should I do it?

rom1v commented 3 weeks ago

Not without root: https://android.stackexchange.com/questions/236503/how-to-keep-adb-tcpip-on-after-a-reboot