Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
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.