---
title: gatewayAddress
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neipv4route/gatewayaddress
---

# gatewayAddress

The address of the next-hop gateway of the route.

## Declaration

```swift
var gatewayAddress: String? { get set }
```

## Discussion

Discussion The default value of this property is nil. When this property is nil, the route’s next-hop gateway will be set to the TUN interface unless it is a Split Exclude route.

## See Also

### Accessing IPv4 Route Properties

- [destinationAddress](networkextension/neipv4route/destinationaddress.md)
- [destinationSubnetMask](networkextension/neipv4route/destinationsubnetmask.md)
