FtpListener Constructor (IPAddress, Int32)

Mentalis.org Proxy

Mentalis.org Proxy Documentation

FtpListener Constructor (IPAddress, Int32)

Initializes a new instance of the FtpListener class.

[Visual Basic]Overloads Public Sub New( _
   ByVal Address As System.Net.IPAddress, _
   ByVal Port As Integer _
)
[C#]
public FtpListener(
   IPAddress Address,
   int Port
);

Parameters

Address
The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.
Port
The port to listen on.

Remarks

For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.

Exceptions

Exception Type Condition
System.ArgumentNullException Address is null.
System.ArgumentException Port is not positive.

See Also

FtpListener Class | FtpListener Members | Org.Mentalis.Proxy.Ftp Namespace | FtpListener Constructor Overload List