How to Fix ECONNREFUSED – connection refused by server error in FileZilla

How to Fix ECONNREFUSED – connection refused by server error in FileZilla

There are a few main causes why you get ECONNREFUSED – Connection refused by server in FileZilla FTP client. It’s possible that either your firewall or anti-virus software is preventing FileZilla from connecting to the server. If disabling firewall or anti-virus software doesn’t help, you may need to change FileZilla Network Configuration settings. This step by step tutorial shows how to go through FileZilla Network Configuration Wizard in order to resolve ECONNREFUSED – Connection refused by server error.

ECONNREFUSED Connection refused by server error FileZilla Log

What you’ll need

Before you begin this guide you’ll need the following:

Step 1 — Accessing Network Configuration Wizard in FileZilla Client

To access Network Configuration Manager in your Filezilla client, you press Edit and then select Network Configuration Wizard option.

Network Configuration Wizard

You should now see a Firewall and router configuration wizard. Since we cannot make any changes here, press the Next button.

Network Configuration example

Step 2 — Configuring Transfer Mode

You can now select a transfer mode, choose Passive (recommended) as Default transfer mode. Afterward, click on Allow fallback to other transfer mode on failure and press Next.

Site Manager

Step 3 — Configuring Passive Mode

All you need to select here is Use the server’s external IP address instead and press on Next

Passive mode

Step 4 — Configuring External IP address

As you move forward with this configuration, you should select Get external IP address from the following URL:. If input field is blank, enter the default value which is

Once you have done that, proceed by pressing Next.

External IP

Step 5 — Configuring Port Range

You do not need to make any specific port range configuration here, so select Ask operating system for a port and proceed by clicking Next.

Port range configuration

Step 6 — Testing Configuration

You have provided FileZilla with all the required information. Now you need to make sure that everything is configured correctly. Click on Test button and FileZilla will try to connect to in order to perform some simple tests.


If the test was successful and you have not received any error messages, try connecting to your hosting account. If you still get the ECONNREFUSED error, contact your hosting customer support team for assistance.


By finishing this short tutorial, you have successfully configured your Filezilla Firewall and router settings. You should no longer get ECONNREFUSED – connection refused by server error while connecting to the server.

The Author


Edvinas B. / @edvinas

Edvinas mentors and trains every new customer support agent at Hostinger. When he's not teaching new guys the secrets of providing an exceptional service, he likes to travel the world and play basketball.

Related tutorials


Alex Reply

November 16, 2017

Thank you! It really worked!


Deivid Reply

November 28, 2017

I tried the walkthrougt bellow and the error continues. Now show message is: Failed to create listen socket on port 0, aborting. Can you help me to solve this trouble?


    Domantas G.

    Replied on December 14, 2017

    Hey Devid, If you get this error on a website hosted by us, please provide a link here or contact our customer success team.


    Kumaravel Chellappan

    Replied on September 18, 2019

    Were you able to solve this? I have the same issue. Thank you.


Owen Reply

April 10, 2019

Thanks it worked for me

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Become a part of Hostinger now!

More in FTP
How to Check if FTP Port 21 is Not Blocked
How to Check if FTP Port 21 is Not Blocked