# How to configure AirPlay destination for Mac?

AirPlay allows users to stream/share content from Apple devices to Apple TV, a compatible smart TV, or Mac. With AirPlay, users can stream video, music, photos or mirror the device screens. On macOS devices, AirPlay allows users to mirror their screens, stream music, or play media to another Mac or Apple TV. When mirroring from one Mac to another Mac or Apple TV on the same Wi-Fi network, users authenticate with the destination’s AirPlay password. Hexnode’s AirPlay policy allows IT admins to add AirPlay destinations for Mac, where you can specify their AirPlay destination passwords and MAC addresses. After configuring the AirPlay policy on a Mac, users can mirror screens or media to approved AirPlay destinations when they’re available and on the same Wi-Fi network. Users can seamlessly mirror the screen or stream media without entering the password to the destination devices.

 Note: 
This feature is supported on macOS versions 10.10 and above.

 

Add the list of AirPlay devices to Mac
--------------------------------------

To configure AirPlay follow the below steps,

1. Login to your **Hexnode UEM** Portal.
2. Navigate to **Policies > New Policy**. Assign suitable name and description (optional) for the policy.
3. Go to **macOS > Configurations > AirPlay**. Click Configure.

### AirPlay Passwords

To add the list of the AirPlay devices to Mac,

1. Click on **+Add AirPlay Device** to select the device after choosing either of the following options, 
    - **Select from Hexnode inventory:** Select any Mac or Apple TV from Hexnode’s list of managed devices and enter the AirPlay password of the destination. Click **Add**.
    - **Enter MAC address manually:** Upon selecting this option, enter the MAC Address of the AirPlay destination in the format **‘XX:XX:XX:XX:XX:XX’** and enter the AirPlay password of the destination. Click **Add**.
2. To add multiple devices, select the **+Add AirPlay Device** option. Choose **Select from Hexnode inventory** or **Enter MAC Address manually**.

Associate Policies with macOS devices
-------------------------------------

If the policy has not been saved,

1. Navigate to **Policy Targets > +Add Devices**.
2. Choose the target devices and click **Ok**. Click **Save**.
3. You can also associate the policy with **Device Groups**, **Users**, **User Groups**, or **Domains** from the left pane of the **Policy Targets** tab.

If the policy has been saved,

1. Go to the *Policies* tab and choose the desired policy.
2. Click on the **Manage** drop-down and select **Associate Targets**.
3. Choose the target entities and click **Associate**.

What happens at the device end?
-------------------------------

Before associating the policy, when screen mirroring the Mac to another Mac or Apple TV, the device prompts to enter the AirPlay password for the destination.

[![Device asks for password to AirPlay if you do not configure AirPlay destinations for Mac](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/05/Configure-AirPlay-destinations-for-Mac-to-disable-password-prompts-to-use-AirPlay.png "Configure AirPlay destinations for Mac to disable password prompts to use AirPlay")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/05/Configure-AirPlay-destinations-for-Mac-to-disable-password-prompts-to-use-AirPlay.png)

After associating the policy, Mac will automatically connect to the configured device without requiring a password, if available and connected to the same Wi-Fi network.

 Note: 
If the firewall is configured on the device that is set as the AirPlay destination, it blocks all incoming AirPlay requests and may prevent AirPlay.