In command prompt, run:
:\> netsh winsock reset
Once it's done, just reboot and everything should be back to normal. Winsock2 got corrupted, so resetting to the original Windows values fixes things.
There's a Microsoft KB article that documents this, which might be of interest if a simple reset doesn't help for some reason.