Use this guide.
Navigate to C:\Windows\System32\drivers\etc\ and locate “hosts” file.
Open this “hosts” file in Notepad (for Windows) and add this
18.104.22.168 gs.apple.com or 22.214.171.124 gs.apple.com
line as shown in the screenshot below:
Now simply save this file and you are good to go!
NOTE for Windows 7 and Vista: Start “Notepad” with Administrator privileges by right clicking on “Notepad” app, and click on “Run as Administrator“ option.