NSURLErrorDomain when try to connect to camera using API v. 2.1

@craig I m also facing the same issue… tried all above solution but still getting same error.
1.Error 1:**

Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." 
UserInfo={
    _kCFStreamErrorCodeKey=61, 
    NSUnderlyingError=0x2800e13b0 {
        Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" 
        UserInfo={
            _NSURLErrorNWPathKey=satisfied (Path is satisfied), 
            interface: en0[802.11], ipv4, dns, 
            _kCFStreamErrorCodeKey=61, 
            _kCFStreamErrorDomainKey=1
        }
    }, 
    _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8409EE14-264C-4B78-9FAD-845E0A1C10DB>.<1>, 
    _NSURLErrorRelatedURLSessionTaskErrorKey=(
        "LocalDataTask <8409EE14-264C-4B78-9FAD-845E0A1C10DB>.<1>"
    ), 
    NSLocalizedDescription=Could not connect to the server., 
    NSErrorFailingURLStringKey=https://192.168.1.1/osc/info, 
    NSErrorFailingURLKey=https://192.168.1.1/osc/info, 
    _kCFStreamErrorDomainKey=1
}