<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 10.1.0 - 10.6.0",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkCheckReachabilityByAddress",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkCheckReachabilityByAddress"
  },
  "title" : "SCNetworkCheckReachabilityByAddress"
}
-->

# SCNetworkCheckReachabilityByAddress

Determines whether the specified network address is reachable using the current network configuration.

```
Boolean SCNetworkCheckReachabilityByAddress(const struct sockaddr *address, socklen_t addrlen, SCNetworkConnectionFlags *flags);
```

## Parameters

`address`

The network address of the desired host.

`addrlen`

The length, in bytes, of the address.

`flags`

A pointer to memory that, on output, will be filled with a set of [`SCNetworkConnectionFlags`](/documentation/SystemConfiguration/SCNetworkConnectionFlags) values detailing the reachability of the specified address

## Return Value

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

## Discussion

This function is deprecated, but you can get equivalent results using the following code:

```objc
SCNetworkReachabilityRef target;
SCNetworkConnectionFlags flags = 0;
Boolean ok;
target = SCNetworkReachabilityCreateWithAddress(NULL, address);
ok = SCNetworkReachabilityGetFlags(target, &flags);
CFRelease(target);
```

---

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)