<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkReachabilityFlags/connectionOnDemand",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@E@SCNetworkReachabilityFlags@kSCNetworkReachabilityFlagsConnectionOnDemand"
  },
  "title" : "connectionOnDemand"
}
-->

# connectionOnDemand

The specified node name or address can be reached using the current network configuration, but a connection must first be established.

```
static var connectionOnDemand: SCNetworkReachabilityFlags { get }
```

## Discussion

The connection will be established “On Demand” by the `CFSocketStream` programming interface (see CFStream Socket Additions for information on this). Other functions will not establish the connection.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)