RAS_SetTCPIPProperties
Description
Setup advanced TCP/IP settings for an existing RAS connection
Syntax
RAS_SetTCPIPProperties(sConnectionName, bUseRemoteGateway, sIPAddress, sPrimaryDNS, sSecondaryDNS, sPrimaryWINS, sSecondaryWINS) As Boolean
Parameters
sConnectionName (String)
A friendly name for the connection
bUseRemoteGateway (Boolean)
Use default gateway on Remote Network
sIPAddress (String)
If you want to use a static IP on remote Network
sPrimaryDNS (String)
Primary DNS
sSecondaryDNS (String)
Secondary DNS
sPrimaryWINS (String)
Primary Wins
sSecondaryWINS (String)
Secondary Wins
Example
VBScript
If bStatus Then bStatus = RAS_SetTCPIPProperties("ACME VPN", False, "10.1.1.65", "10.1.1.2", "", "10.1.1.164", "")