This example shows how to establish a connection, setting the host name, port, then connecting:
Sub SetConnection() HostName = "csimvs" Port = 2023 Connect End Sub