---
title: "Xcode Wireless Debugging Setup: How It Works — Nuticast"
description: "Step by step: pair your iPhone once, then debug it in Xcode from another Wi‑Fi over Tailscale, ZeroTier or Netbird, or over a cable on another computer."
url: https://www.nuticast.com/how-it-works
---

# How an iPhone on another network shows up in Xcode

Nuticast is a Mac app that makes an iPhone on another Wi‑Fi, or plugged into another computer, appear in Xcode as a normal run destination. It replays the phone’s Bonjour record on your Mac and relays Xcode’s traffic over your own mesh VPN (the phone stays on Wi‑Fi; cellular does not work) or over the other computer’s cable.

- [When it works](https://www.nuticast.com/how-it-works#when-it-works)
- [Under the hood](https://www.nuticast.com/how-it-works#under-the-hood)
- [Set it up](https://www.nuticast.com/how-it-works#set-it-up)
- [USB via computer](https://www.nuticast.com/how-it-works#usb-via-mac)
- [Troubleshooting](https://www.nuticast.com/troubleshooting)

Nuticast reaches an iPhone that isn’t next to your Mac in one of two ways:

- **Remote Wi‑Fi**: the iPhone is on another Wi‑Fi and reaches the Mac over a mesh VPN. Most of this page.
- **USB via computer**: the iPhone is plugged into another computer running Nuticast (or Nuticast USB Host on Windows), and that computer shares its cable. See [USB via computer](https://www.nuticast.com/how-it-works#usb-via-mac) below, or the full [USB sharing guide](https://www.nuticast.com/usb-sharing).

## Why a VPN alone is not enough

Xcode finds a wireless iPhone with Bonjour (mDNS), and Bonjour only travels inside one network. The moment the phone joins a different Wi‑Fi it drops out of Xcode’s run destination menu, with no error.

A mesh VPN fixes half of that. It gives the phone an address your Mac can reach from the other network, but Xcode still won’t list a device it can’t find over Bonjour, even if it can ping it. A plain VPN to the office behaves the same way: it makes the network reachable and carries no discovery. The long version is in [why Xcode wireless debugging breaks when your iPhone leaves Wi‑Fi](https://www.nuticast.com/blog/xcode-wireless-debugging-breaks-on-roam).

1. Your Mac, on its Wi‑Fi Xcode Looks for wireless iPhones with Bonjour, and Bonjour only hears what is on the same network.
2. The iPhone, on another Wi‑Fi iPhone-Mike Announces itself with Bonjour to the network it is on. Xcode never hears it.

**Fig 1.** Bonjour stays on one network. A VPN can make the phone reachable by IP, but Xcode only lists devices it finds through Bonjour, so the phone is missing from the run destination menu.

## Nuticast replays the record and relays the traffic

Two jobs, kept apart. Discovery: Nuticast replays the phone’s Bonjour record on your Mac, so Xcode lists the phone. Reachability: it relays Xcode’s traffic over the mesh VPN you already run.

1. The iPhone, next to your Mac, once Add Device You pick the phone while it is still local. Nuticast records its Bonjour identity and matches it to the same phone on your mesh VPN.
2. Your Mac Nuticast When you start the bridge with the phone away, it replays the phone’s Bonjour record on this Mac.
3. Xcode Run destination Hears the record on its own Mac and lists the iPhone.

**Fig 2.** Nuticast replays the phone’s Bonjour record on your Mac. Xcode hears it locally and lists the iPhone, which solves discovery.

You show Nuticast the phone once, while it is next to the Mac (see [Add the device](https://www.nuticast.com/how-it-works#add-the-device)). After that, starting the bridge is a switch.

1. iPhone iPhone-Mike On a different Wi‑Fi from your Mac. Not cellular.
2. Your mesh VPN Tailscale Or ZeroTier, Netbird or a manual IP. The one you already run.
3. Your Mac Nuticast Replays the phone’s Bonjour record and relays Xcode’s traffic on tunnel ports in the 55000–58000 range, opened as Xcode needs them.
4. Xcode Run destination iPhone-Mike is listed and ready.

**Fig 2 and 3.** Nuticast replays the phone’s Bonjour record on your Mac, so Xcode lists the iPhone. Xcode’s traffic then goes over your mesh to the phone on the other Wi‑Fi. The phone stays on Wi‑Fi: cellular does not work. **Fig 3.** Xcode’s traffic goes over your mesh to the phone on the other Wi‑Fi. The phone stays on Wi‑Fi: cellular does not work.

Xcode then builds, installs and debugs as it would with the phone on your desk. There is no account and no cloud relay: the traffic stays on your own mesh.

## It comes back on its own

1. What changes Wi‑Fi or VPN Your Mac joins another Wi‑Fi, its IP changes, or the VPN reconnects.
2. Nuticast Bridge restarts It notices and restarts the bridge by itself. You press nothing.
3. Xcode Bridge active The iPhone is listed again.

**Fig 4.** When the Mac changes Wi‑Fi or the VPN reconnects, the bridge comes back on its own. Quit and reopen the app and active bridges are restored on launch.

When the Mac’s IP, Wi‑Fi or VPN changes, Nuticast restarts the bridge by itself. After a quit and reopen, it restores the bridges that were active. If a bridge ends in **Error**, use [Scan port](https://www.nuticast.com/how-it-works#keeping-it-running) once the phone is back online.

## A cable on another computer skips the Wi‑Fi

If the iPhone is plugged into another computer running Nuticast (a Mac, or a Windows PC with Nuticast USB Host), that computer shares the cable and your Xcode Mac reaches the phone through it. The iPhone needs no Wi‑Fi and no VPN, and the computer with the cable needs no license. Setup is under [USB via computer](https://www.nuticast.com/how-it-works#usb-via-mac).

1. iPhone iPhone-Lab On a cable. Needs no Wi‑Fi and no VPN.
2. The Mac with the cable USB Sharing on Nuticast shares the cabled iPhone. This Mac needs no license.
3. Your Mac Nuticast Adds the phone with the “USB via computer” connector.
4. Xcode Run destination iPhone-Lab is listed and ready.

**Fig 5.** USB via computer. The iPhone is cabled to another computer, USB Sharing shares it, and your Xcode Mac adds it with the “USB via computer” connector. The phone needs no Wi‑Fi and no VPN.

## When it works and when it does not

### Works when

- The iPhone is on Wi‑Fi. A different Wi‑Fi from your Mac is fine.
- The iPhone has been paired with your Xcode Mac once, next to it.
- The Mac and the iPhone are on the same mesh VPN (Tailscale, ZeroTier, Netbird or a manual IP).
- You run iOS 17 or later, macOS 13.5 or later and Xcode 15 or later.
- Your Mac is awake.
- Or the iPhone is cabled to another computer running Nuticast with USB Sharing on (or Nuticast USB Host on a Windows PC). Then it needs no Wi‑Fi and no VPN.

### Does not work when

- The iPhone is on cellular. Cellular does not work.
- The iPhone was never paired with your Xcode Mac.
- The mesh VPN is on only one of the two devices.
- iOS older than 17, macOS older than 13.5 or Xcode older than 15.
- Your Mac is asleep.
- The iPhone is still on your Mac’s Wi‑Fi. Nuticast refuses to start the bridge then, because it would conflict with normal local debugging.

## Under the hood

For engineers: services, ports and what gets relayed

- Xcode finds a paired wireless iPhone through its Bonjour service `_remotepairing._tcp`, the RemotePairing control channel that Xcode and `devicectl` use to start a debug session.
- While the phone is still on your Wi‑Fi, Nuticast records its Bonjour identity and matches it to the same device on your mesh VPN. When the phone is away, it re-advertises that identity on your Mac as a proxy record.
- Nuticast then relays the RemotePairing and CoreDevice tunnel traffic over the mesh to wherever the phone is. It relays bytes between Xcode and the phone.
- The tunnel uses tunnel ports in the `55000–58000` range, opened as Xcode needs them. The app lists the tunnel ports, so you can see what Xcode is talking to.
- There is no account and no cloud relay. Traffic stays on your mesh VPN, or between your own Macs when you use a cable.

## Set it up

Start with Remote Wi‑Fi. USB via computer has its own section further down.

### Before you start

- **For Remote Wi‑Fi, a mesh VPN**: Tailscale, ZeroTier or Netbird, installed and signed in on both Mac and iPhone (same network on that provider).
- **The iPhone paired with Xcode** once, next to the Mac. On iOS 27 or later, Xcode 27 can do this over Wi‑Fi: in Device Hub, click **+** → **Pair Nearby Device…** with both on the same Wi‑Fi. On older iOS, pair over USB once.
- **For Remote Wi‑Fi, the iPhone on Wi‑Fi** when you bridge. A different Wi‑Fi from the Mac is fine. Cellular doesn’t work: Apple’s wireless debugging doesn’t run the same way over cellular.

Nuticast doesn’t set these up for you: it builds on a mesh VPN and a device Xcode already knows.

For alternatives and their trade-offs, see [how to debug an iPhone in Xcode on a different network](https://www.nuticast.com/blog/debug-iphone-xcode-different-network).

### Choose your mesh VPN

Nuticast works the same way whichever mesh VPN you use. The only difference is how it finds your iPhone’s address on that network.

- Tailscale
  Devices are found automatically from its command line.
  [Setup guide](https://www.nuticast.com/blog/tailscale-for-ios-developers)
- ZeroTier
  Paste the device IP from your dashboard.
  [Setup guide](https://www.nuticast.com/blog/zerotier-for-ios-developers)
- Netbird
  Devices are found automatically from its command line.
  [Setup guide](https://www.nuticast.com/blog/netbird-for-ios-developers)
- Manual IP
  Any other mesh VPN: type in the IP it assigned your iPhone.

Not on Tailscale, ZeroTier or Netbird? Nuticast isn’t limited to those three. Pick **Manual IP** when adding a device: confirm your iPhone and Mac are joined to the same network on whichever mesh VPN you actually use, find the IP that VPN assigned the iPhone (its own app or dashboard will show this), and type that IP straight into Nuticast. Everything after that (bridging, auto-restart, status) works exactly as it does for the three built-in providers.

### Add the device

Three steps in the Add Device window:

1. **Find the iPhone on Wi‑Fi.** With the phone still next to the Mac (on the same Wi‑Fi, or on USB), pick it from the list Nuticast finds.
2. **Match your mesh VPN device.** Pick which mesh VPN you’re using, then match the same physical phone from its device list (Tailscale, Netbird) or type in its assigned IP (ZeroTier, or **Manual IP** for anything else).
3. **Name it.** Any label works, e.g. “Mike’s iPhone.” Saved locally only; nothing is uploaded.

### Start the bridge

Once the iPhone has left your Mac’s Wi‑Fi and joined **another Wi‑Fi**, toggle **Start Bridge** (main window, device detail, or menu bar). Keep the phone on Wi‑Fi: cellular doesn’t work.

Nuticast then:

1. Confirms the phone is actually remote (refuses if it’s still on the same Wi‑Fi, because that would conflict with normal local debugging).
2. Checks it’s reachable over your mesh VPN.
3. Makes it visible to your Mac again.
4. Forwards traffic over that mesh VPN connection.

Xcode then treats it like a normal local device: build, install, debug.

## USB via computer

For an iPhone plugged into another computer: a Mac mini in a rack, a teammate’s desk, your Mac at home, a Windows PC in a lab. The iPhone needs no Wi‑Fi and no VPN; the two computers need to reach each other, ideally over a mesh VPN. The computer with the cable can be a Windows PC running Nuticast USB Host (see [the Windows host](https://www.nuticast.com/usb-sharing/setup#windows)); the steps below are for a Mac.

1. **On the Mac with the cable**: plug in the iPhone, unlock it, tap **Trust**. Open Nuticast → **USB Sharing** → switch it on, pick the address to share over (a mesh VPN address is the default) and copy it. This side needs no license.
2. **On the Mac with Xcode**: **Add Device** → pick the iPhone (one already saved works too) → connector **USB via computer** → paste the address → **Check** → Save.
3. **Start the bridge** as usual. Xcode builds, installs and debugs over the other Mac’s cable.

The iPhone has to be paired with the Xcode Mac once, like any Nuticast device. From the terminal: `nuticast share` on the Mac with the cable, `nuticast add --device "<iPhone>" --usb <address>` on the Xcode Mac. Every screen, step by step, with the error messages: [USB sharing guide](https://www.nuticast.com/usb-sharing/setup#setup).

## What the status says

- **Off**: not running
- **Pairing…**: connecting
- **Bridge active**: live
- **Error**: failed; the message says why

## It keeps itself running

- Mac IP / Wi‑Fi / VPN changes: bridge restarts automatically.
- Quit and reopen: active bridges restore on launch.
- After an **Error**, use **Scan port** on that device if the phone just came back online.

## Settings

- **CLI path**: set this per provider if its binary (`tailscale`, `netbird`, `zerotier-cli`) isn’t on your PATH.
- **Device profiles**: saved pairings, each remembering which mesh VPN provider they use; delete what you don’t need.
- **Launch at Login**: restore bridges after a restart.

Written by [Taha Yasin Kucuk](https://www.nuticast.com/about), the iOS developer who builds Nuticast. If a step does not match what you see, write to [hello@nuticast.com](mailto:hello@nuticast.com); I answer it myself. Something not working? Start with [troubleshooting](https://www.nuticast.com/troubleshooting).

Updated 6 November 2026

## Try it on your own iPhone.

Discovery and pairing cost nothing. Bridging needs a license on the Xcode Mac: $49 per year, with a 14-day refund if it does not work for your setup.

[Download for Mac](https://www.nuticast.com/download/Nuticast.dmg) [Send this to my Mac](mailto:?subject=Nuticast%20for%20my%20Mac&body=https%3A%2F%2Fwww.nuticast.com%2Fdownload) Shares the download link with your Mac. [See pricing](https://www.nuticast.com/pricing)
