Appium via tcp connection

Hello,
I am trying to make an Appium connection via Ethernet wired to my device because unfortunately it has no usb or wi-fi. The only solution i found was with adb…but it is not what i need.

def startAppiumServer():
desired_caps = {
“deviceName”: “172.31.144.110”,
“platformName”: “Android”,
“version”: “5.1.1”,
“appPackage”: “com.myapp”,
“appActivity”: “com.myapp.MainActivity”,
“realDevice”: True,
}
driver = webdriver.Remote(“http://localhost:4723/wd/hub”, desired_caps)
return driver

----------------------------------------------------------------------------|

def OpenAppiumSever():
os.system(“adb connect 172.31.144.110”)
os.system(“adb shell am start -n com.myapp/com.myapp.MainActivity”)

#OpenAppiumSever()
startAppiumServer()

Appium logs:
[AndroidDriver] Retrieving device list

[ADB] Trying to find a connected android device

[ADB] Getting connected devices…

[ADB] Could not find devices, restarting adb server…

[ADB] Restarting adb

[ADB] Killing adb server on port 5037

[ADB] Getting connected devices…

[ADB] Could not find devices, restarting adb server…

[ADB] Restarting adb

[ADB] Killing adb server on port 5037

[ADB] Getting connected devices…

[ADB] Could not find devices, restarting adb server…

[ADB] Restarting adb

[ADB] Killing adb server on port 5037

[ADB] Getting connected devices…

[ADB] Could not find devices, restarting adb server…

[ADB] Restarting adb

[ADB] Killing adb server on port 5037

[ADB] Getting connected devices…

[ADB] Could not find devices, restarting adb server…

[ADB] Restarting adb

[ADB] Killing adb server on port 5037

[AndroidDriver] Shutting down Android driver

[AndroidDriver] Called deleteSession but bootstrap wasn’t active