DialGetServerIP is a built-in scripting function that gets the IP address of a Remote Access Service (RAS) server station.
Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|
Dial-up | Synchronous | Supported (see Notes) | Not Supported | Supported |
Also, this parameter is optional but you must include it when you configure the function on an object animation such as Text Data Link or Position.
Value | Description |
---|---|
-5 | DialGetServerIP was not found in IndRAS.dll. |
-4 | Invalid type; check numType. |
-3 | Incorrect number of parameters. |
-2 | DialStatus was not found in IndRAS.dll. |
-1 | IndRAS.dll was not loaded. |
n | Status code returned by DialStatus. |
This is the value returned by the function itself. The IP address is written to the tag specified by tagServerIP.
This function must be executed on the RAS client station, not on the server station. (Essentially, the station gets the IP address of the server to which it is connected.)
Also, this function is not supported on Windows 7.
DialGetServerIP( 0, "Office DialUp", "ServerIPTag" )
DialGetServerIP( 1, "USRobotics_SportsterFaxModem", "ServerIPAddress", Second )
DialGetServerIP( 2, "DirectDial", "IPAdd" )