Skip to content

Use current adb port (if any) for --tcpip - #3592

Closed
rom1v wants to merge 0 commit into
devfrom
tcpip_anyport
Closed

rom1v wants to merge 0 commit into
devfrom
tcpip_anyport

Conversation

@rom1v

@rom1v rom1v commented Nov 24, 2022

Copy link
Copy Markdown
Collaborator

If the current adb port is not 5555 (typically it is 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 and listens on another port, use that port without reconfiguration.

Fixes #3591

@rom1v
rom1v force-pushed the tcpip_anyport branch 2 times, most recently from 5311998 to 754388d Compare November 24, 2022 08:28
@Nowaker

Nowaker commented Nov 24, 2022

Copy link
Copy Markdown

Thank you, this is exactly what I was looking for!

@rom1v rom1v closed this Dec 2, 2022
Linux4 pushed a commit to Linux4/scrcpy that referenced this pull request Sep 5, 2025
scrcpy v1.25

Changes since v1.24:
 - Adapt copy-paste internals for Android 13 (Genymobile#3497)
 - Add support for high-precision scrolling (Genymobile#3363, Genymobile#3369)
 - Add desktop entry files for Linux (Genymobile#295, Genymobile#296, Genymobile#748, Genymobile#1636, Genymobile#3351)
 - Add bash and zsh autocompletion for -s/--serial (Genymobile#3522, Genymobile#3523)
 - Use current adb port (if any) for --tcpip (Genymobile#3591, Genymobile#3592)
 - Add fallback to get display information on some devices (Genymobile#3416, Genymobile#3573)
 - Fix click behavior when --forward-all-clicks is set (Genymobile#3568, Genymobile#3579)
 - Fix support for non-ASCII characters in window title (Genymobile#2932, Genymobile#3547)
 - Fix getDisplayIds() crash on some versions of Android 13 beta (Genymobile#3446)
 - Upgrade platform-tools to 33.0.3 (adb) in Windows releases
 - Upgrade FFmpeg to 5.1.2 in Windows 64-bit releases
 - Upgrade SDL to 2.26.1 in Windows releases
 - Various technical fixes
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

Successfully merging this pull request may close these issues.

2 participants