From e8bc8777f815fe1b7474e78f1dbdc44a7a209e5c Mon Sep 17 00:00:00 2001 From: slava-markovski-unity3d Date: Wed, 3 Jun 2026 13:08:42 +0200 Subject: [PATCH] fix: use host machine IP for real devices instead of adb reverse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit adb reverse silently fails through ADB relay setups (STF, Headspin, and any device farm that proxies ADB connections). The reverse tunnel command exits 0 but is never established on the device side, so connections to localhost:PORT on the device get nothing and fail with 'unexpected end of stream'. Using the host machine's public IPv4 directly works for both physical devices (reachable over Wi-Fi on the same network as the Appium host) and emulators, with no regression. Verified on: - Local AVD (Android emulator) — fix works - STF with physical Pixel 6 running Android 16 — fix works --- src/utils/adb.ts | 14 ++------------ src/utils/proxy.ts | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/utils/adb.ts b/src/utils/adb.ts index 3628107..3915393 100644 --- a/src/utils/adb.ts +++ b/src/utils/adb.ts @@ -28,14 +28,12 @@ export async function isRealDevice(adb: ADBInstance, udid: UDID): Promise