Makiya posted this solution from KoK, which worked for me:

What about this error message: "Failed logging into the Login Server server. (10038)"
I keep getting this error and many others are getting this one too.
I figured this one out. You have to reinstall Winsock because the TCP/IP stack has become corrupted.

Detailed instructions can be found here: How to repair Winsock