You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use pymobiledevice3 to activate JIT using Termux now. However, I faced a difficult: The tunnel created by pymobiledevice3 can’t be connected.
$ sudo python3 -m pymobiledevice3 lockdown start-tunnel
2025-01-16 22:23:13 localhost pymobiledevice3.cli.remote[6329] INFO tunnel created
Identifier: [UDID]
Interface: tun0
Protocol: TunnelProtocol.TCP
RSD Address: fd09:dbde:8ec9::1
RSD Port: 53521
Use the follow connection option:
--rsd fd09:dbde:8ec9::1 53521
However, when I execute python3 -m pymobiledevice3 developer dvt ls /, it was not working:
Where self.address is ('fd09:dbde:8ec9::1', 53521)
I tried to connect to the address given, but it does not connect:
$ telnet fd09:dbde:8ec9::1 53521
Trying fd09:dbde:8ec9::1...
telnet: Unable to connect to remote host: Network is unreachable
$ telnet fd09:dbde:8ec9::2 53521
Trying fd09:dbde:8ec9::2...
telnet: Unable to connect to remote host: Connection refused
What should I check next to figure out the problem and tries to fix it?
Full `developer dvt ls /` exception
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/__main__.py", line 284, in <module>
main()
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/__main__.py", line 269, in main
while invoke_cli_with_error_handling():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/__main__.py", line 188, in invoke_cli_with_error_handling
cli()
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1695, in invoke
sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 949, in make_context
self.parse_args(ctx, args)
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 1417, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/cli/cli_common.py", line 62, in handle_parse_result
return super().handle_parse_result(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 2403, in handle_parse_result
value = self.process_value(ctx, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/click/core.py", line 2365, in process_value
value = self.callback(ctx, self, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/cli/cli_common.py", line 247, in rsd
asyncio.run(rsd.connect(), debug=True)
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/remote/remote_service_discovery.py", line 59, in connect
await self.service.connect()
File "/data/data/com.termux/files/home/pmd3/lib/python3.12/site-packages/pymobiledevice3/remote/remotexpc.py", line 57, in connect
self._reader, self._writer = await asyncio.open_connection(self.address[0], self.address[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/streams.py", line 48, in open_connection
transport, _ = await loop.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 1127, in create_connection
raise exceptions[0]
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 1102, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 1005, in _connect_sock
await self.sock_connect(sock, address)
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/selector_events.py", line 651, in sock_connect
return await fut
^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/selector_events.py", line 659, in _sock_connect
sock.connect(address)
OSError: [Errno 101] Network is unreachable
Host: Linux localhost 4.9.295-Dark-Ages-Último #1 SMP PREEMPT Sun May 12 14:51:56 CST 2024 aarch64 Android
pymobiledevice3 4.18.3
Target: iPadOS 18.0.1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use pymobiledevice3 to activate JIT using Termux now. However, I faced a difficult: The tunnel created by pymobiledevice3 can’t be connected.
Then the
tun0
interface is appeared.However, when I execute

python3 -m pymobiledevice3 developer dvt ls /
, it was not working:Where
self.address
is('fd09:dbde:8ec9::1', 53521)
I tried to connect to the address given, but it does not connect:
What should I check next to figure out the problem and tries to fix it?
Full `developer dvt ls /` exception
Beta Was this translation helpful? Give feedback.
All reactions