Back to product page

RemotePort property


Holds originating port of the user.

Type

A Long value.

Syntax

  • Basic
object.RemotePort [= value]  
The RemotePort(object,value) syntax has these parts:
objectAn expression evaluating to an object of type SSHUser.
valueA Long value.

Remarks

RemotePort property contains Port number on user's originating computer from where he initiated connection. Although this doesn't seem like important thing, you may make a difference between users using this value. For instance, on UNIX systems root account is allowed to use ports less than 3000 while others user's are not. So, if you want to allow only privileged ports to access your server, you can check this value. It is known already at LoginPassword event.

Platforms

Windows