Genymobile / Genymobile/scrcpy

Tunnels work fail for multiple devices

Open
#3,370 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: [e.g. Debian, Windows, macOS...]
- scrcpy version: [e.g. 1.24]
- installation method: [Windows release]
- device model:
- Android version: [11]

**Describe the bug**
When multiple devices are connected, they cannot work normally,when a device is connected, it can work normally

One device:
```
C:\Users\gentliu>scrcpy.exe --serial=HZQN1876DAK60100141 --max-size=1024 --bit-rate=2M --encoder=OMX.google.h264.encoder --max-fps=15 --verbosity=verbose --force-adb-forward --tunnel-port=5039
scrcpy 1.24
DEBUG: ADB device found:
DEBUG: --> (usb) HZQN1876DAK60100141 device Nokia_8_3_5G
DEBUG: Device serial: HZQN1876DAK60100141
DEBUG: Using server (portable): D:\Green\scrcpy-win64-v1.24\scrcpy-server
D:\Green\scrcpy-win64-v1.24\scrcpy-server: 1 file pushed, 0 skipped. 16.3 MB/s (41159 bytes in 0.002s)
DEBUG: Remaining connection attempts: 100
DEBUG: Remaining connection attempts: 99
DEBUG: Remaining connection attempts: 98
DEBUG: Remaining connection attempts: 97
DEBUG: Remaining connection attempts: 96
DEBUG: Remaining connection attempts: 95
DEBUG: Remaining connection attempts: 94
DEBUG: Remaining connection attempts: 93
DEBUG: Remaining connection attempts: 92
[server] INFO: Device: HMD Global Nokia 8.3 5G (Android 12)
[server] DEBUG: Creating encoder by name: 'OMX.google.h264.encoder'
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): D:\Green\scrcpy-win64-v1.24\icon.png
INFO: Initial texture: 464x1024
DEBUG: Starting demuxer thread
```

Multiple devices
```
C:\Users\gentliu>scrcpy.exe --serial=HZQN1876DAK60100141 --max-size=1024 --bit-rate=2M --encoder=OMX.google.h264.encoder --max-fps=15 --verbosity=verbose --force-adb-forward --tunnel-port=5039
scrcpy 1.24
DEBUG: ADB device found:
DEBUG: (usb) 5773762F device N150DL
DEBUG: --> (usb) HZQN1876DAK60100141 device Nokia_8_3_5G
DEBUG: Device serial: HZQN1876DAK60100141
DEBUG: Using server (portable): D:\Green\scrcpy-win64-v1.24\scrcpy-server
D:\Green\scrcpy-win64-v1.24\scrcpy-server: 1 file pushed, 0 skipped. 9.4 MB/s (41159 bytes in 0.004s)
**adb.exe: error: more than one device/emulator**
ERROR: "adb forward" returned with value 1
WARN: Could not forward port 27183, retrying on 27184
adb.exe: error: more than one device/emulator
ERROR: "adb forward" returned with value 1
WARN: Could not forward port 27184, retrying on 27185
DEBUG: User requested to quit
DEBUG: Interrupting process
ERROR: "adb forward" returned with value 3221225786
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.