mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-13 03:29:16 +00:00
Use current adb port (if any) for --tcpip
If the current adb port is not 5555 (typically 0 because it is not in TCP/IP mode), --tcpip automatically executes (among other commands): adb tcpip 5555 In case adb was already listening on another port, this command forced to listen on 5555, and the connection should still succeed. But this reconfiguration might be inconvenient for the user. If adb is already in TCP/IP mode, use the current enabled port without reconfiguration. Fixes #3591 <https://github.com/Genymobile/scrcpy/issues/3591>
This commit is contained in:
parent
6469b55861
commit
bd1deffa70
4 changed files with 54 additions and 41 deletions
|
@ -275,7 +275,7 @@ Configure and reconnect the device over TCP/IP.
|
|||
|
||||
If a destination address is provided, then scrcpy connects to this address before starting. The device must listen on the given TCP port (default is 5555).
|
||||
|
||||
If no destination address is provided, then scrcpy attempts to find the IP address of the current device (typically connected over USB), enables TCP/IP mode, then connects to this address before starting.
|
||||
If no destination address is provided, then scrcpy attempts to find the IP address and adb port of the current device (typically connected over USB), enables TCP/IP mode if necessary, then connects to this address before starting.
|
||||
|
||||
.TP
|
||||
.B \-S, \-\-turn\-screen\-off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue