Try this:
From the Start menu, begin typing ‘cmd’.
In the results that populate, right-click the Command Prompt result and select Run as administrator.
- Type ipconfig /flushdns and press Enter. Wait a few seconds and when the command prompt appears, proceed to the next step.
- Type ipconfig /registerdns and press Enter.
- Type ipconfig /release and press Enter.
- Type ipconfig /renew and press Enter.
- Type netsh winsock reset and press Enter.
- Restart your computer.
It worked for me but after an hour or so the game still crashes and I’m back with the same error and have to do it all again.