Skip to content

Tunnel broken after switch from USB to WiFi #596

Description

@colmaengus

Describe the bug
When an iOS device switches from USB to WiFi the tunnel daemon has to be restarted to access the device again

To Reproduce
Steps to reproduce the behavior:

  1. Configure the iOS device in Xcode to connect over USB or WiFi.
  2. Connect the iOS device via USB
  3. Start the tunnel daemon
  4. Confirm that ios --udid=XXX diskspace is working
  5. Disconnect USB and confirm in Xcode that the iOS device is now connected via WiFi
  6. ios --udid=XXX diskspace eventually fails with the following error: {"err":"NewWithAddrPortTUNDevice: failed to connect to device: ConnectToHttp2WithAddr: failed to dial: dial tcp [fdfc:eb24:7be0::1]:52832: connect: operation timed out","level":"fatal","msg":"could not connect to RSD","time":"2025-05-15T16:28:04+01:00"}
  7. Kill the tunnel daemon and ios --udid=XXX diskspace starts working again

Expected behavior
Access to the device would continue to work after switching USB to WiFi without having to kill the tunnel daemon

Desktop (please complete the following information):

  • OS: macOS
  • Version 15.4.1

Smartphone (please complete the following information):

  • Device: iPhone XR
  • OS: iOS
  • Version 18.5

Additional context

  • What is strange is that the device is listed twice in ios list before you disconnect from USB and listed once after even though its unable to connect.
  • When you reconnect USB ios --udid=XXX diskspace continues to work and ios list lists the device twice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions