Skip to content

Can a Mac VPN Interrupt Bonjour Discovery for AirPlay Speakers?

Your AirPlay speaker is missing from the Mac menu as soon as the VPN connects. Here is how Bonjour discovery works, why a VPN may interrupt it, and how to test calmly.

10 min readUpdated Nov 10, 2026By XPASS Editorial Team

Can a Mac VPN Interrupt Bonjour Discovery for AirPlay Speakers?

You sit down at your Mac, connect the VPN, and reach for the sound menu. The living room speaker that was there ten minutes ago is gone. You turn the VPN off, wait a few seconds, and it appears again. It feels as if the VPN has damaged something, but the speaker is fine and so is your Wi-Fi. What changed is the path your Mac uses when it asks the network a question.

The question in this case is a Bonjour question. This article explains what Bonjour discovery does for AirPlay speakers, why a VPN can interrupt it, how to test the cause without special tools, and what you can reasonably do about it. The details depend on your Mac, the macOS version, the VPN app and your router, so treat the steps below as a method for finding the cause, not as a guarantee that every speaker will work alongside every VPN.

What Bonjour does for AirPlay

AirPlay has two stages. First your Mac has to find out which speakers and screens are nearby. Only then can it send audio to one of them. The first stage is discovery, and Bonjour is Apple's name for the technology behind it.

Bonjour is built on multicast DNS. Instead of asking a central server "where is the kitchen speaker", your Mac sends a short question to a special group address that every device on the local network listens to. Speakers that support AirPlay answer with a small description: their name, their address and the kind of service they offer. The Mac turns those answers into the list you see in the sound menu or in the screen mirroring menu. If you want the general background on name lookup, how DNS works covers the ordinary, server-based version, and multicast DNS on a home network covers the local version in more depth.

A few facts shape everything that follows:

  • The questions and answers are meant for the local network only. Routers do not forward them to other networks by default.
  • The Mac and the speaker normally need to be on the same network segment, which often means the same Wi-Fi name.
  • Discovery and streaming are separate. A speaker can be found and still fail to play, or be hidden while it would have played perfectly if you had its address.
  • The list is refreshed from time to time, so a result you see now may be a few seconds old.

When people say "the VPN broke AirPlay", they usually mean the first stage failed. The speaker never appeared, so the second stage never started.

Why a VPN can get in the way

A VPN changes where some or all of your Mac's network traffic goes. That is the whole point of it, but it has side effects for traffic that was supposed to stay in the room. The VPN app used with XPASS, VPNclient, is an Intel-only .dmg installer on macOS and does not use macOS VPN configurations, so this article does not try to describe its internals. What follows are the general ways a VPN on any Mac can disturb Bonjour.

Local traffic is sent into the tunnel

If the VPN is set up to carry all traffic, a question or a request meant for a device in your living room may be sent to the VPN server. The VPN server cannot reach your speaker. Whether the home address range is excluded from the tunnel differs from one VPN app to another. Private ranges like the ones described in RFC 1918 are sometimes kept outside the tunnel and sometimes not, so test instead of assuming.

Local traffic is blocked while the VPN is on

Some VPN setups and some firewall rules stop anything that does not go through the tunnel. The purpose is protective: if the tunnel drops, nothing travels in the clear. The side effect is that traffic to local devices can be caught by the same rule, so the speaker looks as though it has disappeared.

Discovery questions leave by the wrong connection

A Mac can have several network connections at the same time, such as Wi-Fi, an Ethernet adapter, a Thunderbolt dock, and a virtual connection created by a VPN. When a VPN is connected the system may prefer one of those for new questions. If the multicast question leaves by a connection that does not reach the speaker, the speaker never hears it.

The Mac is not on the same network as the speaker

This one has nothing to do with the VPN, but it often gets blamed on it. A guest network, a separate network for smart-home devices, a mesh system that isolates clients, or a wired segment behind a different router can all stop the Mac and the speaker from hearing each other. If AirPlay fails even with the VPN off, look at the router and the network layout first.

macOS local network permission

Recent versions of macOS can ask whether an app is allowed to find and connect to devices on the local network. If an app was refused, it may not see the speaker regardless of the VPN. The wording and the place of the setting vary by macOS version, so look in System Settings under Privacy and Security for a local network entry, and check that the app you are using to play audio is allowed.

A stale answer

The Mac and the speaker both remember recent information for a short time. If the speaker's address changed, or a lookup failed while the VPN was connecting, the old result may stay for a minute or two. Waiting briefly, or toggling Wi-Fi, can clear it.

Symptoms and likely causes

What you notice Likely cause First thing to try
Speaker disappears only when the VPN is on Local traffic is routed into the tunnel or blocked Look for a local network or excluded-apps setting in the VPN app
Speaker is listed but will not play Discovery works, streaming traffic is blocked or misrouted Test with the VPN off, then check the speaker's address
Speaker is missing with and without the VPN Guest network, isolation or different network Put the Mac and speaker on the same Wi-Fi
Speaker returns after a minute or after a reconnect Cached result Wait, then toggle Wi-Fi
Speaker works on other devices, not on the Mac Local network permission or Mac firewall rules Check privacy settings and firewall settings
Speaker is only missing on Ethernet Different network segment or connection order Test on the same Wi-Fi as the speaker

How to test, step by step

The aim is to work out which of the causes above applies. Each test is short.

  1. Check the speaker first. Confirm that the speaker is powered on, joined to your home Wi-Fi, and visible to another device such as an iPhone on the same network. If it is not visible anywhere, the VPN is not the cause.
  2. Test with the VPN off. Disconnect the VPN on the Mac and open the sound menu or the screen mirroring menu. If the speaker appears, continue. If it does not, stop and look at the router, the guest network or the speaker.
  3. Connect the VPN and look again. Give it ten seconds. If the speaker is missing only now, the VPN setup is involved.
  4. Make sure both devices share one network. In the Wi-Fi menu confirm the Mac is on the same network name as the speaker. Do the same for the other device you used in step 1.
  5. Try the other network option. If the Mac is on Ethernet through a dock, try Wi-Fi for a moment to see whether the connection type changes the result.
  6. Look for a local network option in the VPN app. Some VPN apps include a setting for local network access or a list of apps that skip the VPN. Names differ by app and version. Open the app's settings and look for anything about local networks or excluded apps. If you cannot find one, ask support rather than guessing. The article on split tunneling on a Mac explains what such a setting does and why it is not always available.
  7. Check macOS privacy and firewall settings. Look at the local network entry under Privacy and Security and at the firewall settings, and confirm nothing is blocking the app you use for audio.
  8. Reconnect cleanly. Disconnect the VPN, turn Wi-Fi off and on, wait a few seconds, then reconnect the VPN and look again. This forces a fresh round of questions.

If you are comfortable with Terminal, there is one extra check. Running dns-sd -B _airplay._tcp shows the AirPlay services your Mac currently hears, and dns-sd -B _raop._tcp does the same for the audio service many speakers use. Stop either command with Control and C. Run it once with the VPN off and once with it on. If the speaker shows in the first run and not in the second, you have confirmed that discovery itself is being interrupted. If you would rather not use Terminal, the menu tests above are enough.

A plain example

Nok has a Mac mini connected to a Wi-Fi speaker in the living room. She turns on her VPN while she checks a few accounts, and at 8:15 she opens the sound menu to start a playlist. The speaker is not listed. She disconnects the VPN and the speaker returns within seconds, so the VPN is involved.

She reconnects, then opens the speaker's own app on her phone and notes the speaker's address. From the Mac she opens a Terminal window and sends a simple ping to that address. The ping gets replies, which tells her that traffic to the speaker can reach it. Only the discovery question is failing. After she toggles Wi-Fi and reconnects, the speaker comes back on its own, which suggests a stale result or a connection choice, not a blocked network.

Her brother has the same symptom on a laptop and finds that even the ping fails while the VPN is on. In his case the VPN app was sending all traffic through the tunnel without an exception for the home network. He decides to pause the VPN while he plays music at home and reconnect when he leaves. Same symptom, different causes. That is why a short test is more useful than a guess.

Settings that can make a difference

Names and menus change between VPN apps, macOS versions and routers, so treat this list as things to look for.

  • Local network access in the VPN app. An option that lets traffic for the home network skip the tunnel. When the app offers it, it is usually the cleanest fix.
  • Excluded apps or split tunneling. If the app you use for audio is excluded, its local discovery can stay with the normal connection. Some apps and platforms do not offer this at all.
  • Kill switch or block-without-VPN settings. They protect you if the tunnel fails, but they can also block local traffic. Check for a local exception.
  • Router guest network and client isolation. If your router keeps devices apart, discovery cannot work. This is a router setting, not a VPN setting, and the related article on local printers that disappear with a VPN shows the same pattern with a different device.
  • AirPlay options on the Mac and the speaker. Check who is allowed to stream to the speaker, since some speakers can limit access to the same home or require a password.
  • Fixed address for the speaker. Many routers can reserve an address for a device so it does not change, which helps if you need to connect by address.

What a VPN will not do here

It helps to be realistic.

  • A VPN does not make a speaker at home appear on a Mac in another city or country. Bonjour is local by design, and most consumer VPN tunnels do not carry it.
  • A VPN does not guarantee that AirPlay will work. The result depends on the app, the macOS version and the router.
  • A VPN does not protect traffic that stays on your local network. When local access is allowed, audio sent from the Mac to the speaker travels directly and is not inside the tunnel. That is normal and usually fine at home.
  • On a hotel, airport or cafe network, other guests share the same local network. Opening local access there can expose your Mac to them, so keep the setting closed and avoid sharing or streaming on those networks.
  • Turning the VPN off briefly for local tasks at home is a legitimate choice. It is your network. Just remember to reconnect before you use public Wi-Fi.

When nothing works

If you have followed the steps and discovery still fails with the VPN on, you have three practical choices.

  1. Pause the VPN for the time you need the speaker, then reconnect.
  2. Use a different way to reach the speaker, such as its own app on a phone that is not on the VPN, or a cable or Bluetooth connection if the speaker supports one.
  3. Contact support with clear notes: Mac model, macOS version, which speaker failed, whether it appeared with the VPN off, and whether a ping to its address worked. Good notes lead to quicker answers.

Avoid advice that tells you to switch off the Mac firewall or open ports on your router just to make a speaker appear. That trade is rarely worth it. If the Mac does not behave as the steps suggest, the Mac VPN troubleshooting guide covers general checks that apply whatever the cause.

Summary

Bonjour lets your Mac discover AirPlay speakers by asking the local network, and a VPN can interrupt that by sending local traffic into the tunnel, blocking it, or steering the question out of the wrong connection. Test with the VPN off, then on, check that both devices share one network, look for a local network or excluded-apps option in the VPN app, and keep local access closed on shared networks. If you use a VPN pass for travel or public Wi-Fi and only pause it at home, you can see the available options on the XPASS pricing page.

Frequently asked questions

Why does my AirPlay speaker disappear from the Mac when the VPN is on?

AirPlay speakers are found through Bonjour, which asks the local network who is available. If the VPN setup sends local traffic into the tunnel, blocks it, or makes the Mac ask on a different network connection, the speaker may not hear the question and will not appear in the list.

Is Bonjour the same thing as AirPlay?

No. Bonjour is Apple's name for the discovery step that lets devices announce themselves on a local network. AirPlay is the feature that streams audio or video once the Mac has found the speaker. Discovery can fail while the speaker itself is perfectly healthy.

Can I stream to a speaker if the Mac is connected to a VPN at a different location?

Not in the usual home setup. Bonjour discovery is meant to stay on one local network, and a normal consumer VPN does not make a speaker at home appear on a Mac that is somewhere else. The Mac and the speaker generally need to be on the same local network.

Should I turn off the VPN to use AirPlay at home?

That is a reasonable choice on a home network you control. Pause the VPN, use AirPlay, and reconnect afterwards. On a hotel or cafe network, keep the VPN on and do not open local sharing unless you trust the network.

How can I tell whether the VPN or the router is the cause?

Test with the VPN off. If the speaker is still missing, the cause is elsewhere, such as a guest network, Wi-Fi isolation or the speaker being on a different network. If it returns when the VPN is off and vanishes when it is on, the VPN setup is involved.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

Troubleshooting

Can a VPN Break Multicast DNS Discovery on a Home Network?

Your printer or smart speaker disappears the moment the VPN connects. Here is how multicast DNS works, why a VPN can interfere, and how to test it step by step.

10 min read

Device Guides

Split Tunneling on macOS: Options and Limits

A practical look at mac vpn split tunneling: what macOS itself offers, how app-based and route-based splitting differ, how to prove it works, and where it breaks.

10 min read

Troubleshooting

Why Does a Local Network Printer Disappear When VPN Routing Changes?

A printer that worked a minute ago can vanish the moment a VPN connects. This guide explains the routing and discovery reasons and a safe order of checks.

10 min read