So I do
nSocket := SocketOpen( SOCK_STREAM, "localhost", nPort, @nError )
when the client and the server are in the same computer. Kind of like talking to myself in the mirror. Thanks.