Connect to a wireless display (Windows 11)

Avast has suddenly started blocking me from casting to a wireless display. The only way I can connect (which I’ve done regularly with no problems until now) is to turn off the Avast Firewall.

I’ve looked through all the apps and rules and nothing I have done will allow me to use miracast. Can someone please tell me what to turn off or what rule to add and where to correct this without turning off all my virus protection?

Thanks.

Is Your firewall sett to trusted/private network?

Yes, that’s the first thing I checked.