This function just opens a communication channel but doesn't check if there is a peer on the other end of the connection. To know this, you should either check IsProtocolAvailable or ITargetDeviceSocket::Connected. Socket object on success, nullptr otherwise.