Avast blocks my laptop from connecting to Roku

I’ve been trying to cast/screen mirror my laptop to my roku tv for last week or so and although i get a message on the tv saying its connecting it never connects. After looking online some people were saying their AV or firewall was the issue so i disabled Avast Shields temporary and bam the laptop connected to my tv. I used to be able to connect with no issues this seems to be a new issue.

Is there a way to have avast accept screen mirroring without disabling the shields? My only other option would be to run a HDMI cable.

edit: Just noticed Avast Free has a firewall i didnt know this what would i add to allow the tv to be accepted? Not sure what “app” part of Windows i’d have to allow. Also if i turn off the firewall and just with windows firewall i get a red X on the avast icon saying im not protected.

How did you “turn off” the firewall?
If you want to remove Avast Firewall, go to Menu>Settings>General>Troubleshooting
then scroll down and click on [ADD/MODIFY COMPONENTS]
From the screen of Avast components, untick “Firewall”
You should then get back to Windows Firewall.

However. before resorting to that removal, check your Avast Firewall is set to private not public.