I'd noticed a lot of people had been having problems with this error, I did a winstock reset. If you don't know how to do this, Read below.
For Windows XP
* Press "Windows Key"+R
o The Run box should now appear
* Type "cmd.exe" in the box and click "OK"
o The command prompt window should now appear
* Type "ipconfig /flushdns" and press "Enter" on your keyboard
* Then type "netsh winsock reset" and press "Enter" on your keyboard
* Reboot your PC.
For Vista/7
* In the start menu search bar, type "cmd"
o "cmd.exe" should be one of the first things on the list
* Right Click "cmd.exe" and select "Run as administrator"
o The command prompt window should now appear
* Type "ipconfig /flushdns" and press "Enter" on your keyboard
* Then type "netsh winsock reset" and press "Enter" on your keyboard
* Reboot your PC.
Also, Make sure you turn off your AV and Firewall.