<!--
{
  "availability" : [
    "iOS: 2.0.0 - 17.4.0",
    "iPadOS: 2.0.0 - 17.4.0",
    "macCatalyst: 13.1.0 - 17.4.0",
    "macOS: 10.3.0 - 14.4.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkReachabilityGetFlags(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkReachabilityGetFlags"
  },
  "title" : "SCNetworkReachabilityGetFlags(_:_:)"
}
-->

# SCNetworkReachabilityGetFlags(_:_:)

Determines if the specified network target is reachable using the current network configuration.

```
func SCNetworkReachabilityGetFlags(_ target: SCNetworkReachability, _ flags: UnsafeMutablePointer<SCNetworkReachabilityFlags>) -> Bool
```

## Parameters

`target`

The network reference associated with the address or name to be checked for reachability.

`flags`

A pointer to memory that, on output, is filled with flags that describe the reachability of the specified target. (See [`SCNetworkReachabilityFlags`](/documentation/SystemConfiguration/SCNetworkReachabilityFlags) for possible values.)

## Return Value

`TRUE` if the flags are valid; `FALSE` if the status could not be determined.

## Discussion

---

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)