Connect Method

Visual Basic: Winsock Control

Visual Studio 6.0

Connect Method

See Also    Example    Applies To

Requests a connection to a remote computer.


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



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

© 2016 Microsoft