Visual Basic: Winsock Control

Bind Method

See Also Example Applies To

Specifies the LocalPort and LocalIP to be used for TCP connections. Use this method if you have multiple protocol adapters.

Syntax

object.BindLocalPort, LocalIP

The Bind method syntax has these parts

Part Description
object An object expression that evaluates to an object in the Applies To list.
LocalPort The port used to make a connection.
LocalIP The local Internet address used to make a connection.

Remarks

You must invoke the Bind method before invoking the Listen method.