Share this page

# TC.vtcConnect

Creates a connection to the server (supports HTTP).

Equivalent method in VuGen: lrvtc_connect

    TC.vtcConnect(serverName, port, vtsName);

Note: To connect using HTTPS, basic authentication, or NTLM authentication, use TC.vtcConnectEx.

## Arguments

Name | Description
--- | ---
serverName | (string) The IP or name of the server.
port | (integer) The port number.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise that is fulfilled with 0 if completed successfully.

## Example

Copy code

    (async ()=>{
        let ret = await TC.vtcConnect("ServerName", 8888);
    })();

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: