Quite often this issue is caused by security software.
Please add the game's executable, or preferable whole installation folder, to your security software exceptions list / white list.
Simply disabling firewall or AV software could not be enough, since some of these software are running still in background or in services list.
If you are using more then one security software at the time, please make sure to add it to all security software.