Running tests on external server

Hi guys,
I have a problem with no connected devices error.

Appium server is installed on the remote machine, and I connected the Android phone on my MacBook.
So I added appium-server-url=http://10.12.22.22:4723/wd/hub into my caps and started appium server on the remote machine, but getting following error (I know the problem is with adb devices (the phone is not visible on the machine)). Is there any way to see the phone on the remote machine (USB debugging is turned on)? Thanks in advance!

[Appium] Welcome to Appium v1.20.2

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> POST /wd/hub/session

[HTTP] {"desiredCapabilities":{"appActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","platformVersion":"10.0","automationName":"UiAutomator2","platformName":"Android","deviceId":"192.168.33.54:5555","deviceName":"239c3ae93f057ece"},"capabilities":{"firstMatch":[{"appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:automationName":"UiAutomator2","deviceId":"192.168.33.54:5555","appium:deviceName":"239c3ae93f057ece","platformName":"android","appium:platformVersion":"10.0"}]}}

[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","platformVersion":"10.0","automationName":"UiAutomator2","platformName":"Android","deviceId":"192.168.33.54:5555","deviceName":"239c3ae93f057ece"},null,{"firstMatch":[{"appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:automationName":"UiAutomator2","deviceId":"192.168.33.54:5555","appium:deviceName":"239c3ae93f057ece","platformName":"android","appium:platformVersion":"10.0"}]}]

[debug] [BaseDriver] Event 'newSessionRequested' logged at 1615820011491 (09:53:31 GMT-0500 (Central Daylight Time))

[BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix:

[BaseDriver] deviceId

[Appium] Appium v1.20.2 creating new AndroidUiautomator2Driver (v1.61.2) session

[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided

[debug] [BaseDriver] Creating session with W3C capabilities: {

[debug] [BaseDriver] "alwaysMatch": {

[debug] [BaseDriver] "appium:deviceId": "192.168.33.54:5555",

[debug] [BaseDriver] "platformName": "android",

[debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main",

[debug] [BaseDriver] "appium:appPackage": "com.android.chrome",

[debug] [BaseDriver] "appium:automationName": "UiAutomator2",

[debug] [BaseDriver] "appium:deviceName": "239c3ae93f057ece",

[debug] [BaseDriver] "appium:platformVersion": "10.0"

[debug] [BaseDriver] },

[debug] [BaseDriver] "firstMatch": [

[debug] [BaseDriver] {}

[debug] [BaseDriver] ]

[debug] [BaseDriver] }

[BaseDriver] The following capabilities were provided, but are not recognized by Appium:

[BaseDriver] deviceId

[BaseDriver] Session created with session id: d328333a-1a4b-4bc0-a38a-a460b440242c

[UiAutomator2] Starting 'com.android.chrome' directly on the device

[ADB] Found 0 'build-tools' folders under '/opt/android/sdk' (newest first):

[ADB] Using 'adb' from '/opt/android/sdk/platform-tools/adb'

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 start-server'

[AndroidDriver] Retrieving device list

[debug] [ADB] Trying to find a connected android device

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [ADB] Getting connected devices

[debug] [ADB] No connected devices have been detected

[debug] [ADB] Could not find online devices

[debug] [ADB] Reconnecting adb (target offline)

[debug] [ADB] Running '/opt/android/sdk/platform-tools/adb -P 5037 reconnect offline'

[debug] [UiAutomator2] Deleting UiAutomator2 session

[debug] [BaseDriver] Event 'newSessionStarted' logged at 1615820032666 (09:53:52 GMT-0500 (Central Daylight Time))

[debug] [W3C] Encountered internal error running command: Error: Could not find a connected Android device in 20222ms.

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:266:13)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:18)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)

[debug] [W3C] at getDevices (/usr/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:283:12)