How to Fix Screen Mirroring Not Working on Mac

Clicking the Control Centre Screen Mirroring icon on macOS to beam presentations, video, or a secondary desktop to an Apple TV or AirPlay 2-compatible smart television only to receive an error stating Could not connect to Apple TV (or watching the connection endlessly spin before timing out) halts wireless presentation workflows. Under normal conditions, macOS utilizes Bonjour mDNS network discovery and RTSP/H.264 streaming protocols over local Wi-Fi to establish an encrypted video mirroring session. When this handshake fails, the target receiver is isolated on a guest Wi-Fi network, the native macOS Application Firewall blocks incoming AirPlay discovery ports, or the local AirPlay background daemon (airplayd) is unresponsive. Adjusting firewall rules and cycling AirPlay daemons restores wireless screen mirroring.

Verify Unified Wi-Fi Subnet and Disable AP Isolation

AirPlay protocol discovery requires both your Mac and the target television or Apple TV to reside on the identical physical IP subnet and local network frequency.

  1. Click the Wi-Fi icon in your Mac menu bar and check the active SSID name.
  2. Open network settings on your Apple TV or smart television and verify it is connected to the exact same Wi-Fi SSID, avoiding guest networks that isolate connected clients.
  3. If your router features separate 2.4 GHz and 5 GHz networks, connect both devices to the 5 GHz band for improved video streaming throughput.
  4. Access your home router management page and ensure that Access Point (AP) Isolation or Client Isolation is disabled, as this security feature blocks peer-to-peer device communication.

Configure macOS Application Firewall to Allow AirPlay

The native macOS packet-filtering firewall frequently blocks the incoming network ports utilized by Apple AirPlay streaming daemons.

  1. Open the Apple menu > System Settings > Network > Firewall.
  2. If the Firewall toggle is enabled, click the Options… button.
  3. Ensure that Block all incoming connections is unchecked.
  4. Ensure that Automatically allow built-in software to receive incoming connections is checked.
  5. Verify that AirPlay Receiver appears in the allowed applications list with its status set to Allow incoming connections.
  6. Click OK to commit the network security rules.

Kill the AirPlay Daemon and Flush Bonjour DNS Caches

Stale Bonjour multicast records inside the macOS directory services cache can cause Screen Mirroring to target invalid receiver IP addresses.

  1. Press Command + Space, type Terminal, and press Return.
  2. Restart the core AirPlay daemon by executing:
    sudo killall airplayd
  3. Flush local mDNS responder discovery caches:
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  4. Open Control Centre on your Mac, click Screen Mirroring, select your target display, and enter the four-digit on-screen AirPlay pairing code if prompted.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.