t0mer / adb-api

ADB based virtual remote for android tv devices
MIT License
18 stars 3 forks source link

connection error #5

Closed tamimology closed 2 months ago

tamimology commented 1 year ago

I have an Android box (IP 192.168.1.30) in which this container is not connecting to it. When I ping it, I can see the response successfully. I also enabled the developer mode and USB debugging as well. However, I never saw the image prompt on the box as mentioned to accept the connection

In the config file, I used the default 5555 port as I am not aware of any other port.

2023-07-07T11:50:33.655737828Z 2023-07-07 11:50:33.654 | INFO     | __main__:<module>:74 - Adding device AndroidTV With IP: 192.168.1.30
2023-07-07T11:50:33.657813295Z 2023-07-07 11:50:33.657 | ERROR    | __main__:<module>:79 - Error adding ADB Device with IP: 192.168.1.30
2023-07-07T11:50:33.658538321Z 2023-07-07 11:50:33.657 | ERROR    | __main__:<module>:80 - [Errno 111] Connection refused
2023-07-07T11:50:33.713102847Z 2023-07-07 11:50:33.712 | INFO     | __main__:<module>:245 - Virtual remote is up and running
2023-07-07T11:50:33.713896135Z Traceback (most recent call last):
2023-07-07T11:50:33.714084987Z   File "/app/app.py", line 246, in <module>
2023-07-07T11:50:33.714209233Z     adb_device = adb_devices[0]
2023-07-07T11:50:33.714305669Z IndexError: list index out of range
t0mer commented 2 months ago

The default port is 5554