Is this avast with firewall ? if so, try this

Turn off port scan

Avast UI → Protection → Firewall → Settings → Advanced → Uncheck “Enable automatic port scan detection”