Try turning off port scanning feature in firewall. Known bug for localhost.

https://forum.avast.com/index.php?topic=199857.msg1382416#msg1382416