---
title: "requiredInterface(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwparametersprovider/requiredinterface(_:)"
---

# requiredInterface(_:)

Require an interface when connecting, listening, and browsing.

## Declaration

```swift
func requiredInterface(_ interface: NWInterface) -> Self
```

## Parameters

- `interface`: The interface to require.

## Discussion

Discussion Connections will fail if this interface is not available.
