What exact version of avast ?
Any other security (related) software installed ?

Basically all you need to do is tell the firewall (if you have that) to allow Chromecast.