Ok I just tried running our websocket client test cases which all use 'localhost' and didn't have any problems. Perhaps this is a localhost configuration issue on your machine? I was on a Windows 8.1 machine testing with Visual Studio 2013. What version of VS and of the C++ REST SDK are you using?
Steve
Steve