Skip to content

Discover tether daemon IP via Bluetooth when mDNS is unavailable #287

Closed

Description

@Bubbu0129

The problem

Tether currently discovers the desktop daemon’s IP address using mDNS. However, on some public or restricted networks, mDNS is unavailable or unreliable, which can prevent the iPhone from establishing a connection.

What you would like instead

When the iPhone is connected to the tether daemon over Bluetooth, it should be able to obtain the daemon’s IP address through Bluetooth instead of relying on mDNS.

Alternatives you tried

There are several implementation considerations to address. The daemon may be present on multiple network interfaces. It should advertise all available interfaces, and the app can determine the correct interface by matching the iPhone’s IP address against the relevant subnet or network mask.

Activity

  1. added
    enhancement
    on Oct 27, 2026
  2. zackb commented on Oct 28, 2026

    @zackb
    Owner

    It is possible but the iOS app would have to incorporate the bluetooth connection, which today is purely on iOS itself (the app only speaks wifi). A network that blocks mdns is probably also blocking host-to-host communication tho? I think most corp routers do this now.

    You can enter the IP manually in the app as a workaround temporarily.

    Idea:

    • The daemon publishes all of its interface IPs over Bluetooth.
    • The app reads that list, picks the IP that's on the same subnet as the phone, and dials it directly.

    App:

    • Add CoreBluetooth and the entitlements/perms (NSBluetoothAlwaysUsageDescription might be the only)
    • retrieveConnectedPeripherals(withServices:) should find it without a new pairing, if not it may not be worth it.
      tetherd:
    • register a GATT service through bluez , (plus advertising if needed), that lists the interface IPs and port.

    Security is still good because the mtls certs are still checked even if the IP came in over bluetooth.

  3. zackb commented on Nov 6, 2026

    @zackb
    Owner

    Thanks @Bubbu0129 this is now submitted to the App Store after thorough local testing. But I may not have caught everything so if you find issues please re-open and let me know. Great feature.

    It is:
    iOS: 1.5.2
    tetherd: 0.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions