There are 3 methods to troubleshoot this issue:
Method 1: Disable IPv6
Directions for how to do this can be found through this link (https://www.privateinternetaccess.com/helpdesk/kb/articles/how-do-i-disable-ipv6-traffic-on-my-windows-computer). The process will vary based on which version of Windows you have on your machine.
Method 2: Reset Winsock
Winsock corruption is known to trigger such errors. In most cases, the issue is resolved by resetting winsock. To reset winsock, follow the steps below.
Press Windows key. In the search box, type cmd. From the list of results displayed; right click on cmd and click Run as Administrator. If you are on Windows 8 or 10, then Hold the Windows Key and Press X. Choose Command Prompt (Admin) and Click on it.
In the black command prompt window, type netsh winsock reset and press Enter.
Restart your system and check of the issue is resolved.
Method 3: Restart Your Network Adapters
A temporary glitch in network adapters can prevent it from picking up the protocols. A simple restart may also fix the issue. To do this; Hold the Windows Key and Press R. In the run dialog, type ncpa.cpl and Click OK.