Made client handshake with server for connection