Closed
Description
It says to put the following to the config:
device:
name: "google-pixel-7-pro" # Your device identifier from 'adb devices'
So I called adb devices:
user@dev:~$ adb devices
List of devices attached
de32c005 device
Put de32c005 in the config but clearly it's not an IP address so it fails with:
File "/home/user/projects/UnRayNeo/android-mcp-server/adbdevicemanager.py", line 15, in __init__
self.device.connect(rsa_keys=[PythonRSASigner(pub, priv)], auth_timeout_s=5)
File "/home/user/projects/UnRayNeo/android-mcp-server/.venv/lib/python3.11/site-packages/adb_shell/adb_device.py", line 675, in connect
self._available, self._maxdata = self._io_manager.connect(self._banner, rsa_keys, auth_timeout_s, auth_callback, adb_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/projects/UnRayNeo/android-mcp-server/.venv/lib/python3.11/site-packages/adb_shell/adb_device.py", line 221, in connect
self._transport.connect(adb_info.transport_timeout_s)
File "/home/user/projects/UnRayNeo/android-mcp-server/.venv/lib/python3.11/site-packages/adb_shell/transport/tcp_transport.py", line 88, in connect
self._connection = socket.create_connection((self._host, self._port), timeout=transport_timeout_s)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/socket.py", line 839, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/socket.py", line 974, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
Worked around that by adb shell -> ifconfig on my AR glasses and then put the IP into the config
Metadata
Metadata
Assignees
Labels
No labels