I believe the problem causes by either of two reasons:
1.) TCP stack corrupted.
for this netsh reset int ip logfile or netsh reset winsock
should do it.
If that does not work,
2.) Some antivirus software blocked access.
In my case it was McAfee HIPS (Host intrusion prevention service)...