

It’s more common that switching from port 21 to 22 resolves the issue since port 21 is often blocked by ISPs and IT teams. Sometimes, simply switching the port you are using can resolve the ECONNREFUSED message. SFTP is encrypted by default and uses port 22 by default.


Why FileZilla cannot connect with the server?įileZilla is a popular, free, and open-source FTP, FTPS, and SFTP client used to upload and download files. If that doesn’t work or if you’re interested to learn why it worked, keep reading as we’ll cover that fix and other common solutions to this issue here. Then try again to connect to the host IP address or domain you wish to access. If you’re looking for a quick fix to “ECONNREFUSED – Connection refused by server” FileZilla error messages, try changing your port number from 21 (default FTP port) to 22 (default SFTP port) or vice versa, as that is one of the most common fixes.
