Avast is a av application, not a firewall. A firewall is for blocking ports. Check your firewalls manual to see how to open/close ports.