Active and passive mode answer a single question: which computer opens the data connection? They do not choose the protocol, they do not encrypt the session, and they do not fix a wrong password. FileZilla’s network configuration guide recommends passive mode for ordinary clients because the client is the one behind a home router, and there are many clients per server.
SFTP does not use either mode. If your site protocol is SFTP, you can stop here. SSH does not send PASV or PORT.
Prerequisites
- An FTP or FTPS site, not SFTP.
- A log you can scroll.
- The ports guide if the words “control connection” and “data connection” are still fuzzy.
- Access to the server administrator when the PASV address is wrong. A client cannot publish a correct address for a server it does not run.
The two sequences
Passive. The client sends PASV on the control connection. The server replies with an address and a port. The client connects outward to that socket and the listing or file moves. Your home router usually allows that outward connection. The server’s firewall must allow the inbound data port. The project states this directly and recommends it for that reason.
Active. The client sends PORT with its own address and port. The server connects back. That inbound connection hits the client’s router, which usually drops it unless you forwarded a range and told FileZilla the public IP. The network guide’s example PORT 10,0,0,1,12,34 shows a private address that a remote server cannot use. Some routers silently rewrite PORT into the public address. The same guide explains why that rewrite is fragile and why it fails when the session is encrypted: the router can no longer see the command.
Once the data connection exists, direction of the file does not care which mode opened it. Upload and download both use the data connection. People confuse “active mode” with “uploading.” Those are unrelated.
What to set in FileZilla
-
Leave the client on passive mode for a new FTP or FTPS site. In Site Manager, Transfer Settings should stay on the default or on passive. Do not start with active mode “because the office is strict.”
-
Connect and list a directory. If the list appears, stop. You do not need a custom port range.
-
If the log shows a
PASVreply with a private address, the server is behind NAT and is advertising the wrong place. Send that line to the administrator. Do not switch to active mode to paper over a broken server unless they tell you active is their supported method. -
If the administrator says the server only accepts active mode, then configure the client: external IP, a limited port range at or above 50000, and a forward of that range to this computer. The numbers and the reasons are in the project’s network page and are summarized in connection settings. Expect to redo this on every network. That inconvenience is why passive mode exists.
-
Retest one listing. If it works only on the network where you forwarded ports, write that limitation down. A laptop in a hotel will not have that forward.
The Edit menu’s network configuration wizard can walk through the same choice and test it. Use the wizard when you want the program to apply the active-mode values. Decline changes you do not want applied to every FTP site.
Expected result
A passive session logs in, prints a PASV reply with a reachable address, and shows files. An intentional active session prints PORT, the server connects back, and the list appears. Anything else is an incomplete configuration, not a third mode.
You should also be able to say which firewall had to accept a new connection. If you cannot, leave the defaults in place until you can. Forwarding “all high ports” to a workstation is not a successful result.
Common problems
Listings fail only from home. The server’s passive address or range is wrong for outside clients. Inside the server’s own LAN, the private PASV address might work, which is why the administrator says “it works here.” The network guide warns about testing a server from inside its own NAT. Their inside test does not prove your outside passive connection.
Plain FTP lists, FTPS does not. The router may have been rewriting PASV or PORT for cleartext only. Encrypted FTP exposes the misconfiguration. Fix the server’s passive advertisement. Do not disable TLS to satisfy the router.
Active mode works in the office and nowhere else. The office forwarded the range, or the client is not behind NAT there. That is a property of the office, not a FileZilla preference to copy onto a home PC.
You enabled both a wide active range and passive mode and you are not sure which connected. Read the log for the actual command, PASV or PORT. The command is the mode. The toolbar feeling is not.
Troubleshooting in one pass
- Confirm the protocol is FTP or FTPS.
- Confirm the log line is
PASVorPORT. - For
PASV, judge the address. Private and off-site means server NAT. - For
PORT, judge the client address the same way. - Change one side, once.
Then return to directory listing failed if the list is still the thing that breaks, or to transfer failed if the list works and a file does not. A file and a list share the data connection, so a mode that cannot list also cannot transfer. A mode that lists and then fails on one file is no longer a mode problem.
Security considerations
Active mode asks you to accept inbound connections. Keep the range small, forward it only to the computer running FileZilla, and remove the rule when you are done with the server that demanded active mode. Passive mode leaves that inbound exposure off the laptop.
Neither mode encrypts anything. You can be in passive mode and still be on plain FTP. Choose FTPS or SFTP using the secure transfer guide after the data connection works, or before you send anything private. A perfectly forwarded active-mode session will still leak a cleartext password if the protocol is plain FTP.
Do not paste a full PORT line from a real session into a public forum if it contains a public address you consider sensitive. The example addresses in the project documentation are there so you do not need to publish yours.
Frequently asked questions
Does passive mode mean a slower or less secure transfer?
No. The project’s network guide says the difference is only how the data connection is opened. After it is open, uploads and downloads use it the same way. Encryption is a separate choice: FTP, FTPS, or SFTP.
Where do I force passive mode for one host?
Site Manager, on that site’s Transfer Settings tab, can set the transfer mode to passive. Leave other sites on the default if they already work.
Our server is also behind a router. Whose NAT matters?
Both, in different modes. In passive mode the server must advertise an address the client can reach. In active mode the client must advertise an address the server can reach. A private address on either side breaks that direction.
Related tutorials
Sources checked for this guide
Labels in FileZilla can move between releases. If a menu name in your copy differs, follow the message log and the closest matching command rather than forcing an older click path.