Gets and sets the mode to use for FTP.
Read-write property
Visual Basic |
---|
Public Property FTPMode As enumFTPMode |
An enumFTPMode value which determines the mode to use for FTP.
The FTPMode determines whether the FTP connection is in active or passive mode. When going through a firewall you might need to use FTP_PASSIVE.
Passive mode is required in cases when your network has a firewall. Firewalls filter outside attempts to open a session with a high numbered port on your computer. In active mode, when an FTP client (the software running on your PC) contacts a server, it tells the server to send date to a random high-numbered port. The server then tries to open a session with that port. If you have firewall software running on your network, this mode may be blocked because it looks like an intrusion (hacking) attempt.
-
In passive mode, the server tells the client on which of it's ports the client should open a data transferring session. Since it is the client opening the session, the firewall will not block it.
Most all servers will work with either mode.