Connect Method

       

Requests a connection to a remote computer.

Syntax

object.Connect remoteHost, remotePort

The Connect method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
remoteHost Required. The name of the remote computer to connect to.
remotePort The port of the remote computer to connect to.

Return Value

None

Remarks

You must invoke the Connect method when attempting to establish a TCP connection.