---
title: gatewayAddress
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neipv6route/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.

## See Also

### Accessing IPv6 Route Properties

- [destinationAddress](networkextension/neipv6route/destinationaddress.md)
- [destinationNetworkPrefixLength](networkextension/neipv6route/destinationnetworkprefixlength.md)
