You can test it by temporily disabling avast shields & firewall.
Personally, I think if it’s avast! then it will be most likely the Firewall in this case.
You can disable shields/firewall by right clicking the avast! tray icon and disabling them.
Make sure to RE-ENABLE after you have tested.