Set up your Mac to be an AirPlay receiver
You can turn on AirPlay Receiver to receive video and audio content from any nearby Mac, iPhone or iPad on the same network.
The AirPlay Receiver option is available on supported Mac computers with macOS Monterey or later. See the Apple Support article System requirements for Continuity on Mac, iPhone, iPad, iPod touch and Apple Watch.
Note: If your Mac is enrolled in a mobile device management (MDM) system, the AirPlay Receiver option may be unavailable.
On your Mac, choose Apple menu > System Preferences, then click Sharing .
Select the AirPlay Receiver checkbox in the service list on the left.
Select which devices can use AirPlay to stream content to this Mac.
Current user: Only devices signed in to your Apple ID can see and use AirPlay to stream content to this Mac.
Anyone on the same network: Any nearby Mac, iPhone or iPad on the same network can see and use AirPlay to stream content to this Mac.
Everyone: Any Mac, iPhone or iPad can see and use AirPlay to stream content to this Mac.
Select the “Require password” tickbox, then type the password in the text field.