RemotePort Property  
 

Gets and sets the port number for a remote connection.

Syntax

object.RemotePort [= portnumber ]

Remarks

The RemotePort property is used to set the port number that the control will use to establish a connection with the server.

The following values are the default port numbers used by the control:

Value Constant Description
512 rshPortExec A connection is established with the server using port 512, the rexec service. This service requires that the client provide a username and password to execute the specified command.
513 rshPortLogin A connection is established with the server using port 513, the rlogin service. This service is similar Telnet in that it provides an interactive login session. The client is provided with a command prompt and can enter commands which are executed on the server.
514 rshPortRshell A connection is established with the server using port 514, the rshell service. This service uses host equivalence to authenticate the user. With host equivalence, the server considers the client to be equivalent to itself, and as long as the specified user exists on the server, the client is permitted to execute commands on behalf of the user without requiring a password. Host equivalence is configured by the server administrator.

Data Type

Integer (Int32)

See Also

HostAddress Property, HostName Property, Execute Method, Login Method