Just signed up when I saw this post- I'm having this exact issue. Took me days to figure out the problem was with the firewall blocking it (I'm using Avast too). Did you find out how to fix the issue? I'm not keen on having to disable my firewall every time I want to use Minecraft