You say avast blocks it, but avast isn't a firewall, so doesn't block but scans and alerts to any detected infection, which isn't the case or it would have been mentioned. What errors are you getting ?
Now if there is some apparent blocking, there is something else in the mix, conflict perhaps with another security application and probably a firewall.
What is your firewall ?