Class PasvListenerOptions
IP address and port range to be used by the PASV/EPSV commands.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class PasvListenerOptions
  Constructors
| Improve this Doc View SourcePasvListenerOptions(Int32, Int32, IPAddress)
Initializes a new instance of the PasvListenerOptions class.
Declaration
public PasvListenerOptions(int minPort, int maxPort, IPAddress publicAddress)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | minPort | The minimum port number.  | 
      
| Int32 | maxPort | The maximum port number.  | 
      
| IPAddress | publicAddress | The public IP address.  | 
      
Properties
| Improve this Doc View SourceHasPortRange
Gets a value indicating whether the port range is configured.
Declaration
public bool HasPortRange { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
PasvMaxPort
Gets the maximum port number to use for passive ftp.
Declaration
public int PasvMaxPort { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
PasvMinPort
Gets the minimum port number to use for passive ftp.
Declaration
public int PasvMinPort { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Remarks
Needs to be larger than 1023.
PublicAddress
Gets the address published to clients for PASV connections.
Declaration
public IPAddress PublicAddress { get; }
  Property Value
| Type | Description | 
|---|---|
| IPAddress |