---
title: "SCNetworkReachabilityGetFlags(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkreachabilitygetflags(_:_:)"
---

# SCNetworkReachabilityGetFlags(_:_:)

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

## Declaration

```swift
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 doc://com.apple.systemconfiguration/documentation/SystemConfiguration/SCNetworkReachabilityFlags for possible values.)

## Return Value

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