Skip to main content

NetworkVPN

Configures the VPN IP address and port for a network's secure tunnel connection.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

bool NetworkVPN(string SessionID, int NetworkID, string VPNIP, int VPNPort)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with NetworkAdmin or higher authority
NetworkIDintYesNumeric identifier of the network to configure
VPNIPstringYesIP address of the VPN endpoint (IPv4, e.g., 192.168.1.1)
VPNPortintYesTCP port number for the VPN tunnel

Response

Returns true if the VPN configuration was saved successfully, or false if the update failed.

<!-- Example response XML -->
<NetworkVPNResult>true</NetworkVPNResult>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Set VPN endpoint for network 42 — requires NetworkAdmin authority or higher
bool success = await client.NetworkVPNAsync(
sessionID,
networkId: 42,
vpnIP: "10.0.0.50",
vpnPort: 1194);

if (success)
Console.WriteLine("VPN configuration saved.");
else
Console.WriteLine("VPN configuration failed — verify IP, port, and authority.");

REST Equivalent

See Update Network ConfigPOST /v2/networks/update-config.