---
title: serverAddress
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocol/serveraddress
---

# serverAddress

The address of the VPN server.

## Declaration

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

## Discussion

Discussion The format of the value of this property depends on the type of VPN protocol in use. For example, for IPSec the value should be a hostname or an IP address. For a custom SSL-VPN protocol the value may be a URL. The only requirement imposed by the Network Extension framework is that this property must have a non-nil string value for the protocol configuration to be valid.

## See Also

### Configuring the VPN

- [disconnectOnSleep](networkextension/nevpnprotocol/disconnectonsleep.md)
- [proxySettings](networkextension/nevpnprotocol/proxysettings.md)
