Hi,

I never have used the TcpClient class in C++
Though I know for a fact that there is an easy way to do this with the Winsock API.

Give a look into this maybe.