avast block screen mirroring by miracast

i have surface pro 7 with avast premier 2010 and win 10 home. i also have samsung N5300 TV
i am trying to project (wireless miracast) my surface pro screen to my TV. i failed to do so. then i disabled avast firewall then it worked fine. when i re enable the firewall, the screen mirroring stop.
the same occur when i try to screen mirror my galaxy s8 screen to my surface pro 7
i tried to make exception for (castsrv.exe) in avast firewall but i failed.
does anyone have solution?

https://forum.avast.com/index.php?topic=232752.msg1538886#msg1538886

that didn’t work. i think castsrv is not the right application. any suggestion?

you mean firewall in private mode dont work ?

yes. it didn’t work

did you try these ?

see post here from BWhit https://forum.avast.com/index.php?topic=227130.msg1505540#msg1505540