An AirPlay connection problem occurs all the time. You can sometimes find the AirPlay icon on the Control Center on your iPhone, iPad, or iPod, but the device you want to connect to is not displayed as an AirPlay option. You may see a "Search Apple TV" message or the "Can not connect to Apple TV" error message. In addition, it is annoying that AirPlay continues to win. If these problems are similar to the problems you are experiencing, here are the troubleshooting steps.
Step 1-Make sure your iPhone, iPad, Apple TV, Mac, or other AirPlay device is on the same Wi-Fi network.
- On an iOS device, check the Wi-Fi network in Settings> Wi-Fi.
- On Apple TV, go to Settings> Network.
- Connect the iPhone to Wi-Fi
Step 2-Turn off Bluetooth on your iPhone, iPad, or iPod Touch if it's turned on.
Step 3 -Restart your iDevice, Apple TV, MacBook, or other devices with which you use AirPlay. Some Apple users have stated that AirPlay is starting to work after device reboots.
Step 4- Restart the Wi-Fi router. Since AirPlay uses the Wi-Fi network for screen reproduction or streaming content, Wi-Fi is one of the common reasons AirPlay could not find your device. Rebooting the router resolves the Wi-Fi connection problem.
Restart Wi-Fi Router
Step 5 -Update your iDevice, Apple TV or Mac with the latest version of iOS, macOS and tvOS. When AirPlay stops working, a software update may fix the problem.
Step 6- Uninstall Duet Display, AirParrot, or similar third-party applications on your iPhone, iPad, or iPod Touch. These applications have the same function as AirPlay and can interfere with AirPlay.
Step 7- Make sure that AirPlay mirroring is not blocked by the firewall on Mac.
- Go to Apple Menu> System Preferences> Security & Privacy> Firewall> Firewall Options;
- Clear the check box "Block all incoming connections";
- Enable "Automatically allow signed software to receive incoming connections".
- Firewall settings on Mac
Step 8 Renew the DHCP license. This is usually used to resolve Wi-Fi connection issues.
- To renew the DHCP lease on Macs, go to System Settings> Network> Advanced> TCP / IP> Renew DHCP Lease.
- To renew the DHCP lease on the iPhone, iPad, or iPod Touch, go to Settings> WLAN> Touch your Wi-Fi network name, then "Renew lease".
- Renewal DHCP lease
After mirroring the iPhone, iPad or Mac on Apple TV, Apple TV can play videos, but there is no sound on it. It's very annoying. You can try to solve the AirPlay audio problem by following these steps.
Step 1- Make sure the volume is not cut off on your iPhone, iPad, Mac, and Apple TV. On your iPhone, iPad, check the Ring / Silence switch and make sure it is not set to Silence.
IPhone Mute Button
Step 2- Restart the iOS, Mac, and Apple TV devices.
Step 3- If there is no audio reflecting a Mac computer or laptop on Apple TV, go to System Preferences> Sound> Output and select Apple TV for AirPlay. If your Mac does not allow you to select Apple TV as the output source, hold down the Command key while clicking Apple TV.
Step 4- Open Terminal, enter: sudo killall coreaudiod. Coreaudiod is the daemon that allows Core Audio to handle sound on your Mac.
Step 5- Empty caches with Terminal. If AirPlay does not play audio when mirroring the iMac from MacBook to Apple TV, launch the terminal and enter the two command lines:
sudo dscacheutil -flushcache
sudo killall -HUP mDNSReponder