I have the same problem, I am using a Motorola Surfboard modem and and linksys WRT55AG wireless router, but I am connecting to the router through Ethernet cable, not through wireless.
I have turned my firewall off and on, enabled the ports, and tired versions 5.6 and 6.0
Maybe 1 out of 100 times it works, it’s highly random though