I use AFwall+ in whitelist mode on my rooted S4.
I have the chromecast app whitelisted for wifi. But still casting my screen never works unless I turn off AFwall firewall altogether.
I'd rather not have to do that every time I cast my screen.
I imagine there is some other system process that must be whitelisted... any ideas what that might be?