Returns or sets the remote port number to connect to.
Syntax
object.RemotePort = port
The RemotePort property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
port | The port to connect to. The default value of this property is 80. |
Data Type
Long
Remarks
When you set the Protocol property, the RemotePort property is set automatically to the appropriate default port for each protocol. Default port numbers are shown in the table below:
Port | Description |
80 | HTTP, commonly used for World Wide Web connections. |
21 | FTP. |