<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkConnectionStop(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkConnectionStop"
  },
  "title" : "SCNetworkConnectionStop(_:_:)"
}
-->

# SCNetworkConnectionStop(_:_:)

Stops the connection process for the specified network connection.

```
func SCNetworkConnectionStop(_ connection: SCNetworkConnection, _ forceDisconnect: Bool) -> Bool
```

## Parameters

`connection`

The network connection to stop.

`forceDisconnect`

Pass `TRUE` to stop the connection regardless of other applications that might have interest in it.

## Return Value

`TRUE` if the disconnection request succeeded; `FALSE` (use the [`SCError()`](/documentation/SystemConfiguration/SCError()) function to retrieve the specific error).

## 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)