Airplay mirroring error "Could not connect to Apple TV"
Symptoms:
Airplay mirroring not working in OSX. Error “Could not connect to Apple TV”. This is regarding a 3rd gen. ATV. The problem exists when logged in using a network domain user account, local user account works fine.
My setup:
- Wired LAN, including ATV, on the same network, WLAN disabled in OSX.
- Network domain account, connects to a Synology Directory Server.
- Mac Mini (2014), OSX El Capitan 10.11.5 (software up to date)
- Router: ASUS RT-N56U (firmware up to date)
- ATV 3rd gen. (firmware up to date)
- ATV 4th gen. (firmware up to date)
What works:
- Local account in OSX, mirroring works correctly on both ATV 3rd gen. and 4th gen.
- Network account: Airplay mirroring to ATV 4th gen.
- Network account: iTunes Home Sharing to ATV 3rd gen. (video + audio)
- Network account: ATV 3rd gen. shows up in menu bar, even after name change
I have:
- Googled the issue for over a week
- Rebooted Mac
- Rebooted/turned off Mac, router and ATV
- Checked the IP config, made sure that DNS works correctly.
- Not installed Airparrot software (never has been installed).
- Checked Console.app, no error messages logged.
- Firewall: Off
- Enabled/disabled Security code (Passcode) on the ATV
- Deleted com.apple.airplay.plist
- Deleted /Library/Preferences/SystemConfiguration/ NetworkInterfaces.plist
- Reset PRAM/VRAM
- Booted into Safe Mode + restart
- Created another Network User account.
- Set network user as local computer admin
- Changed OSX computer name
- Changed ATV name
- Turned Display Preferences > “Show mirroring options…” off/on
- Deleted Display preferences plist file.
- Turned Bluetooth off.
- Executed command: sudo dscacheutil -flushcache
- Cleared DNS cache with command: sudo killall -HUP mDNSResponder
- Executed command: sudo killall coreaudiod
- Verified disk permissions with command: sudo /usr/libexec/repair_packages --verify --standard-pkgs /
- Repaired permissions with command: sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
- Disabled Bonjour with command: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
- Enabled Bonjour with command: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
- Pinged the multicast group: ping 224.0.0.251, the ATV responds.
- Checked ATV availability with the software Bonjour Browser, the ATV shows up correctly.
Thoughts:
- No problems with the ATV or router/network, since everything works with local user account.
- Network user permission problem? Any way to “reset” or reinstall Airplay?
- Why is 4th gen. ATV working?
- How come iTunes Sharing works?
- Where to go next?
Ideas are welcome, thanks! //Marcus