Connection handshake works