WG Connect WG Connect
Provider guide · UniFi

UniFi on Apple TV — a WireGuard VPN back to your home network

Your UniFi gateway can run a WireGuard VPN server, and your phone and laptop already use it from the road. The travel Apple TV is the exception: Teleport needs Ubiquiti's own client apps and there is none for tvOS, so the TV stays outside. The fix is not a UniFi app — it is a WireGuard client. WG Connect is an independent one for tvOS, and it takes the same client configuration your gateway hands to any other device.

The shape of the setup

The UniFi gateway at home is the WireGuard server. The Apple TV — in a hotel, a holiday flat or a second home — runs WG Connect as the client. One encrypted tunnel between them, and the Apple TV ends up with an address that routes into your home LAN.

  ┌──────────┐                        ┌─────────────┐
  │ Apple TV │ ── encrypted tunnel ──▶│ UniFi gwy   │
  │ (hotel)  │                        │ (WireGuard) │
  └──────────┘                        └──────┬──────┘
                                             │
                                             ▼
                                    ┌──────────────────┐
                                    │ Plex · NAS · Pi  │
                                    │ Cameras · Photos │
                                    └──────────────────┘
  

Nothing is relayed through a third-party cloud. Traffic goes from the Apple TV straight to your home connection.

Getting a WireGuard config from UniFi

WireGuard VPN server configuration lives in the VPN area of the UniFi Network application, where you create a server and then add the clients allowed to use it. Exactly what that area is called and where it sits has moved between Network application versions, and which models support it varies — so use Ubiquiti's current documentation for your controller version and treat the outline below as the concept rather than a click path.

  1. In the Network application's VPN section, create a WireGuard VPN server if you do not already have one, and note the port it listens on
  2. Add a client entry specifically for the Apple TV, separate from your phone and laptop
  3. Download the client configuration UniFi produces for that entry — this is the .conf file. A QR code is usually offered alongside it, which the Apple TV cannot use
  4. Open the file and check the Endpoint and AllowedIPs lines before you import it (see below)
  5. Make sure your gateway is actually reachable from outside on that UDP port

Give the Apple TV its own client entry. Two devices sharing one WireGuard key will contend for the same tunnel and the connection will flap between them. A separate entry also means you can revoke the TV on its own when it is replaced or sold.

Check the endpoint before you import

The Endpoint line is the address the Apple TV dials from outside. If it contains your current ISP-assigned IP address and that address is not static, replace it with a dynamic DNS hostname — home.duckdns.org:51820 — keeping the same port. Otherwise the profile quietly stops working the next time your address changes, usually while you are away.

Split tunnel or full tunnel?

For a travel Apple TV, full tunnel is normally what you want: the TV then behaves exactly as it does in the living room, region-locked apps included. You can edit the AllowedIPs line in the downloaded file before importing if the default is not what you want.

Importing it into WG Connect

The Apple TV has no camera, so the QR code shown next to the download in the Network application is not usable on the TV. WG Connect reverses the direction — the television shows a QR code and your phone scans it. Four ways in:

  1. Upload from phone (easiest). On the Apple TV: Add Profile → Upload from Phone. The TV displays a QR code; scan it with the phone holding the downloaded .conf, on the same Wi-Fi. A small upload page opens, you pick the file, and it transfers to the TV over the local network.
  2. Paste the config text. Open the .conf in a text editor, copy it whole, and paste it into WG Connect.
  3. Import from a URL. WG Connect can fetch the file from an address you provide. Only use hosts you control — the file contains a private key.
  4. Manual entry. Type in private key, address, DNS, peer public key, endpoint and allowed IPs by hand.

WG Connect reads the file and detects the protocol automatically. A UniFi client config is standard WireGuard, so that is what it uses; there is no protocol setting to get wrong. The same importer also recognises AmneziaWG configs from other sources, and the profile screen shows which protocol was detected.

What to expect once connected

Independent app

WG Connect is an independent WireGuard and AmneziaWG client for tvOS, built by HANSEN AI. It is not affiliated with, endorsed by, or sponsored by Ubiquiti, and it is not a UniFi product. All trademarks are the property of their respective owners.

Frequently asked questions

Can I use UniFi Teleport with an Apple TV?

Teleport relies on Ubiquiti's own client apps, and there's none for tvOS. The WireGuard VPN server that UniFi gateways can run is the route that works here, because it produces a standard WireGuard client configuration any WireGuard client can use — including an independent tvOS client such as WG Connect.

Which UniFi devices can run a WireGuard VPN server?

A UniFi gateway running the Network application — the Dream Machine family, Cloud Gateways and comparable models — rather than a standalone access point or switch. Feature availability differs by model and by Network application version, so check the VPN section of your own controller.

Can the Apple TV scan the QR code UniFi shows?

No — an Apple TV has no camera. Download the client configuration file instead and use WG Connect's Upload from Phone flow: the TV displays its own QR code, your phone scans that and opens a small upload page on the same Wi-Fi, and the .conf transfers to the TV over the local network.

Do I need a static IP or a dynamic DNS name?

You need an endpoint address that stays valid. If your ISP address changes, replace the numeric endpoint in the client config with a dynamic DNS hostname such as home.duckdns.org and keep the port. Otherwise the profile stops working the next time your address rotates.

Will Plex and Infuse see my home server through the tunnel?

Yes. Once connected the Apple TV holds an address that routes into your home LAN, so Plex's local server discovery and Infuse's SMB or NFS browsing behave as if the TV were on the living-room network. Your home upload speed is the practical limit — roughly 25 Mbps for 1080p and 50–100 Mbps for 4K direct play.

What does WG Connect cost, and what does it require?

A one-time purchase — no subscription, no account, no tracking — with Family Sharing support. A free tier lets you verify the tunnel works first, with sessions limited to 120 seconds each. It needs an Apple TV running tvOS 17 or later.

Download on the
App Store