Back to product page

Port property


Port on the server where we will connect.

Type

Integer. Holds port value.

Syntax

  • C#
  • VB.NET
Int32 Port {get; set; };

Property Port As Int32

Remarks

This property determines which port on remote server is used for connection. When you set Protocol property, wodSSH.NET will automatically set this value to default port (22). If remote server uses some non-standard port value, you can change it here to appropriate value.

If you use Telnet protocol, you should set Port to 23 - since this is default port for Telnet protocol. If Raw protocol is used - then there is no default port since this is just a general protocol.

This property value cannot be changed after Connect method is issued.

Platforms

Windows