“Connection refused” is a specific network result. The TCP handshake was reset before a file-transfer session started. FileZilla asked for a port, and something answered with a refusal. The log often includes ECONNREFUSED. The usual reason is that nothing is listening on that port. A firewall can produce the same result when it rejects the connection instead of ignoring it. A firewall that only drops packets does not look like this. That silence is a timeout.
The password has not been tested, and neither has the FTP or SSH conversation. You can stop changing encryption options and Site Manager logon types until a port accepts a connection. A refusal that appears only after login, on the FTP data connection, is a later problem. Use directory listing failed or transfer failed for that line.
Prerequisites
- The exact host and port from the provider, not a guess from an old bookmark.
- The protocol name they used: FTP, explicit FTPS, implicit FTPS, or SFTP.
- FileZilla’s message log visible.
- Authority to ask the provider whether the service is enabled. You cannot fix a stopped server from the client.
If you are looking at a timeout instead of a refusal, switch to connection timeout. The next steps are different.
Confirm what was refused
-
Reproduce the error once. In the log, find the host and port FileZilla actually used. A site entry and a Quickconnect history item can disagree. Believe the log line for this attempt.
-
Compare that pair with the welcome instructions.
| Account type | Port that should accept | What a refusal often means |
|---|---|---|
| Plain FTP or explicit FTPS | 21 | Often the FTP service is not listening, or a firewall rejects 21. A dropped packet would time out instead |
| Implicit FTPS | 990 | Often implicit FTPS is not running on that host. Many hosts never start it. Confirm before treating 990 as required |
| SFTP | 22, unless the host said otherwise | Often nothing is listening for SSH, a firewall rejects the port, or the name reaches a different machine |
-
Open the site in Site Manager and check Protocol. FTP pointed at port 22 is a classic refusal. SFTP pointed at port 21 is another. Fix the pair, then try once.
-
If the protocol and port match the instructions and the attempt is still refused, do not treat one cause as certain. Common cases are a service that is not running, a firewall that rejects the port, or a hostname that reaches a machine which does not offer that service. A rule that only drops packets would time out instead. Ask the administrator: “From my network, TCP to host X port Y is refused. Is the service listening, and is it allowed to accept connections from the public internet?”
-
Try the same site from a second network you are allowed to use, such as a phone hotspot. If it is refused there too, the host, the port, or a reject rule in front of the server is the shared factor. If the second network connects, the first network is rejecting the port. That does not by itself prove a server-wide outage.
Do not run a port scan against a host you do not administer. One connection attempt from FileZilla is the diagnostic you are entitled to make. A sweep of other ports is not troubleshooting. It can also violate the host’s terms.
A worked example
The panel says:
SFTP hostname: files.example.com
Port: 22
The saved site says Protocol FTP, Encryption “require explicit FTP over TLS,” Port 22. FileZilla tries to speak FTP to an SSH port, or to a closed port. The refusal is expected. Change Protocol to SFTP and try again. The SFTP guide is the setup to copy.
The opposite example: the panel says explicit FTPS on port 21, and the site uses implicit FTPS on 990 because a blog said FTPS always uses 990. Port 990 is closed, so it is refused. Switch to explicit TLS on 21, using the FTP configuration guide.
Expected result
The log stops saying refused. The next message may be a certificate prompt, a host key prompt, a password error, or a directory list. Any of those means this page’s job is done. Move to the page that matches the new message.
If the administrator enables the service, a retry should connect without any further FileZilla change. If you “fixed” it by switching to an unrelated open port, you are talking to a different program. Undo that.
Common problems
Refused only on one network. The refusal is a reset, so that path is rejecting the port. A network that only drops traffic would time out. The client cannot override the reject. Use a network you are allowed to use, or a protocol that network allows. Do not set up a tunnel you are not authorized to use.
Refused after a hosting migration. The hostname moved and the old address no longer has the service, or the new server never enabled FTP. Update the host field from the new welcome letter. Flushing random settings will not discover the new name.
Refused on 990 while port 21 connects. This host may not be running implicit FTPS. Explicit FTPS on 21 is the mode the project’s TLS page describes with ftpes://. Use the mode the host documents. The refusal does not prove that implicit FTPS is unavailable on every server.
The error appears halfway through a transfer, not at the start. That is often a data connection being refused, especially in active mode, or a passive port the server told you to use and then blocked. The control connection was fine. Read directory listing failed or transfer failed, depending on whether a listing or a file was in progress.
What not to change
- The password. It has not been checked.
- Transfer type, ASCII versus binary. Irrelevant until a file moves.
- The master password and stored logins. Irrelevant to a closed port.
- Active-mode port forwards. They do not make a remote port 22 start listening.
Longer timeouts do not turn a refusal into a session. Leave the timeout alone so you can see the refusal quickly.
Security considerations
A refused port is not an invitation to try neighboring ports until something accepts. You may connect to a service you did not intend, and you may violate policy. Use the port in the account documentation.
If a host that should be refusing public FTP suddenly accepts it, tell the administrator. An accidentally public FTP service is how password-less or weakly protected accounts leak. Prefer the SFTP or explicit FTPS endpoint they intended you to use.
When you report the problem, send the host, the port, the protocol, and the refusal line. Do not send the password “so they can test.” They can reset it. FileZelo does not need it either.
Frequently asked questions
Is connection refused a wrong password?
No. A wrong password happens after the TCP connection succeeds. A refusal on the first connection happens before login. You will not see a 530 reply for a port that never opened. A 530 means the port accepted the connection, so the authentication page is the next one.
I changed the port from 21 to 22 and it is still refused.
A refusal means this TCP attempt was reset. If SSH is actually listening on port 22, an FTP attempt usually connects and then fails because the protocols do not match. That is a different log line. A refusal on 22 more often means nothing is listening, or a firewall is rejecting the port. If the account is SSH, set Protocol to SFTP and use the port in the instructions. Do not point FTP at 22 and require TLS.
Can FileZelo open the port for me?
No. The service has to be started by the server administrator, and the firewall has to allow it. FileZelo only explains how to read the result.
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.