---
title: NWParameters
framework: network
role: symbol
role_heading: Class
path: network/nwparameters
---

# NWParameters

An object that stores the protocols to use for connections, options for sending data, and network path constraints.

## Declaration

```swift
final class NWParameters
```

## Mentioned in

Indicating the source of network activity

## Topics

### Creating Parameters

- [tls](network/nwparameters/tls.md)
- [tcp](network/nwparameters/tcp.md)
- [dtls](network/nwparameters/dtls.md)
- [udp](network/nwparameters/udp.md)
- [quic(alpn:)](network/nwparameters/quic(alpn:).md)
- [quicDatagram(alpn:)](network/nwparameters/quicdatagram(alpn:).md)
- [init(tls:tcp:)](network/nwparameters/init(tls:tcp:).md)
- [init(dtls:udp:)](network/nwparameters/init(dtls:udp:).md)
- [init(quic:)](network/nwparameters/init(quic:).md)
- [init()](network/nwparameters/init().md)
- [init(customIPProtocolNumber:)](network/nwparameters/init(customipprotocolnumber:).md)
- [copy()](network/nwparameters/copy().md)

### Modifying Protocol Stacks

- [defaultProtocolStack](network/nwparameters/defaultprotocolstack.md)
- [NWParameters.ProtocolStack](network/nwparameters/protocolstack.md)
- [NWProtocol](network/nwprotocol.md)

### Selecting Paths

- [requiredInterfaceType](network/nwparameters/requiredinterfacetype.md)
- [requiredInterface](network/nwparameters/requiredinterface.md)
- [requiredLocalEndpoint](network/nwparameters/requiredlocalendpoint.md)
- [prohibitConstrainedPaths](network/nwparameters/prohibitconstrainedpaths.md)
- [prohibitExpensivePaths](network/nwparameters/prohibitexpensivepaths.md)
- [prohibitedInterfaceTypes](network/nwparameters/prohibitedinterfacetypes.md)
- [prohibitedInterfaces](network/nwparameters/prohibitedinterfaces.md)

### Customizing Connection Options

- [multipathServiceType](network/nwparameters/multipathservicetype-swift.property.md)
- [NWParameters.MultipathServiceType](network/nwparameters/multipathservicetype-swift.enum.md)
- [serviceClass](network/nwparameters/serviceclass-swift.property.md)
- [NWParameters.ServiceClass](network/nwparameters/serviceclass-swift.enum.md)
- [allowFastOpen](network/nwparameters/allowfastopen.md)
- [expiredDNSBehavior](network/nwparameters/expireddnsbehavior-swift.property.md)
- [NWParameters.ExpiredDNSBehavior](network/nwparameters/expireddnsbehavior-swift.enum.md)
- [requiresDNSSECValidation](network/nwparameters/requiresdnssecvalidation.md)
- [preferNoProxies](network/nwparameters/prefernoproxies.md)
- [includePeerToPeer](network/nwparameters/includepeertopeer.md)
- [allowLocalEndpointReuse](network/nwparameters/allowlocalendpointreuse.md)
- [acceptLocalOnly](network/nwparameters/acceptlocalonly.md)

### Configuring Privacy Settings

- [setPrivacyContext(_:)](network/nwparameters/setprivacycontext(_:).md)
- [NWParameters.PrivacyContext](network/nwparameters/privacycontext.md)

### Instance Properties

- [allowUltraConstrainedPaths](network/nwparameters/allowultraconstrainedpaths.md)
- [attribution](network/nwparameters/attribution-swift.property.md)

### Type Properties

- [applicationService](network/nwparameters/applicationservice.md)

### Enumerations

- [NWParameters.Attribution](network/nwparameters/attribution-swift.enum.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Escapable](swift/escapable.md)
- [NWParametersProvider](network/nwparametersprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Essentials

- [NWEndpoint](network/nwendpoint.md)
