---
title: "init(destinationAddress:subnetMask:)"
framework: networkextension
role: symbol
role_heading: Initializer
path: "networkextension/neipv4route/init(destinationaddress:subnetmask:)"
---

# init(destinationAddress:subnetMask:)

Initialize the NEIPv4Route object.

## Declaration

```swift
init(destinationAddress address: String, subnetMask: String)
```

## Parameters

- `address`: An IPv4 address string. This string is combined with subnetMask to specify the destination network of the route.
- `subnetMask`: An IPv4 network mask string. This string is combined with address to specify the destination network of the route.

## See Also

### Creating an IPv4 Route

- [default()](networkextension/neipv4route/default().md)
