This error tends to be the result of a communication issue in the connection, which may be caused by the DNS on your network settings or even router.
Depending on the root of the issue, it can be resolved by simply restarting the computer or manually restarting the network adapter (which restarting the PC does).
But it could go as far as it being blocked by your firewall, in which case you'd manually have to grant access. For which the steps vary greatly depending on the firewall.