How To Fix Econnrefused


If you are having issues with the ECONNREFUSED – Connection refused by server error in FileZilla, you will find all details and fixes below. This guide contains several methods that can resolve sầu the FTPhường error.


FileZilla is a không tính phí open source cross-platform platform with lots of useful features và an intuitive graphical user interface. It consists of FileZilla Client and FileZilla Server where the Client binaries are available for Windows, Linux và macOS và Server binaries are available for Windows only. The FileZilla Client supports FTP (File Transfer Protocol), FTPS (File Transfer Protocol that supports the Transport Layer Security) and SFTP. (Secure File Transfer Protocol). It is often used for files transferring.

One of the most comtháng errors which FileZilla users may encounter is the “ECONNREFUSED – Connection refused by server”. The error can occur after a connection attempt. At that moment the platkhung will display something similar to this:

Status: Error: Could not connect to lớn serverStatus: Waiting to lớn retry…Status: Resolving address of 2Status: Connecting lớn…Status: Connection attempt failed with “ECONNREFUSED – Connection refused by server”.Error: Could not connect to server


What is ECONNREFUSED error?

The “ECONNREFUSED – Connection refused by server” error indicates that a user is trying to lớn connect to a server but can’t connect lớn the port. It is a comtháng error returned by the FileZilla FTP.. Client.

Bạn đang xem: How To Fix Econnrefused

Also Read How lớn Create a Blog on WordPress

Why FileZilla cannot connect with server?

Connection refused errors can be encountered for several reasons:

The service is not running on your FTP.. Server The Firewall is blocking the port, this could be the Network Firewall, or Windows Firewall on the VPS. The FTPhường. client not configured for the right host information. The FTP client not configured for the right port.

Apparently, this error can be encountered due khổng lồ a variety of reasons, so a fix that works for one person may not be the right for another. Below we will describe the most common reasons for this message to lớn appear in FileZilla & show methods for their fixes.

Method 1 to lớn fix ECONNREFUSED error: Ensure that you’re using the right port

Users who share details about their experience with ECONNREFUSED error confirm that one of the most common solutions is changing the connection port. If that’s the case, all you need to vì is change the 21 (mặc định FTPhường port number) lớn 22 (mặc định SFTPhường port) in the port column presented on the FileZilla platform:



Changing your port number from 21 the default FTPhường port to 22 the mặc định SFTP. port or vice versa is one of the most common fixes for ECONNREFUSED error in FileZilla. If it does work for you, great! If it does not, keep reading as below, we will cover other comtháng solutions lớn this issue.

Method 2 khổng lồ fix ECONNREFUSED error: Disable Firewall, antivi khuẩn, or similar program that may be blocking the connection

The ECONNREFUSED VPS connection error can come as a result of having a firewall or anti-virus software that is preventing FileZilla from making a connection. If these are the issues that are causing the ECONNREFUSED error, then:

Make sure your firewalls allow outbound traffic from the computer running the FileZilla client to TCPhường. port 21 or 22 or another port you’re using on the file hệ thống.

Ensure that local firewalls (e.g. Windows Firewall) or active antivi khuẩn programs are not interfering with your connection or blocking the filezilla.exe application.What can fix the ECONNREFUSED – Connection refused by server is disabling the firewall và anti-virut software on your computer. Here’s how khổng lồ apply this fix on Windows:

1.Press the Windows key & type in Control Panel.2.Navigate to System và Security và select Windows Defender Firewall.


3.On the left menu bar, select the option Turn Windows Defender Firewall on or off.


4.On the next window, modify the settings to turn off Windows Defender Firewall for public và private networks, then press Ok.5.Restart the system and try to lớn connect the server again

On macOS, you need to:

1.Cliông xã on the Apple thực đơn on the upper left toolbar, then clichồng System Preferences.2.Find the Security & Privacy option.


3.Choose the Firewall tab & click on the Turn Off Firewall option.


4.Restart the system & try lớn connect the hệ thống again.

Xem thêm: Cách Cài Đặt Máy In Hp Laserjet, Hướng Dẫn Cài Đặt Driver Cho Máy In Hp

To disable different anti-virus programs that are running on your computer system, you need lớn navigate to programs’ interfaces & look for a turn-off, pause or disable option which may be available on the Settings section or a separate section depending on the used tiện ích.

These steps should fix the ECONNREFUSED – connection refused by VPS error instantly in the sự kiện that your computer’s firewall & anti-virus are causing the problem. If the error is still there then turn everything baông xã on và try the next method.

Also Read How to Redirect a URL (301 and 302 Guide)

Method 3 to lớn fix ECONNREFUSED error: Edit FileZilla Network Configuration Wizard

If none of the methods above sầu worked for you, probably editing FileZilla’s network configurations is the fix you are looking for. To access the Network Configuration Manager in FileZilla you should:

1.Connect lớn FileZilla FTP client & head khổng lồ Edit -> Network Configuration Wizard.


2.Once a Firewall và router configuration wizard window pop up, clichồng Next khổng lồ proceed.3.When the window appears on the screen, mark Passive sầu (recommended) option as the Default transfer mode, và put a check on the Allow fallbaông chồng to another transfer mode on failure option.


4.Then select the option Use the server’s external IP.. address instead.


5.Choose the Get the external IPhường address from the following URL. If the input field is empty, enter the mặc định value, and proceed.


6.Don’t make any changes lớn the port range configuration just select Ask operating system for a port.


7. Clichồng the Test button khổng lồ check if everything is configured correctly. FileZilla will try lớn connect lớn to lớn perform some simple tests.


If you don’t see any errors during the kiểm tra, try connecting to lớn your hosting account again.

If none of the above-mentioned fixes don’t fix the ECONNREFUSED – connection refused by hệ thống error, tương tác your hosting customer support team for further assistance.

Xem thêm: Mách Bạn Cách Bật Chuột Cảm Ứng Laptop Windows Nhanh Chóng, Đơn Giản

Conclusion on Steps lớn Fix ECONNREFUSED Error

To briefly summarize, the methods that we have sầu suggested here are all tested và kiểm tra out to lớn fix the problems with ECONNREFUSED error. FileZilla will usually give up after four connection attempts before giving you the ECONNREFUSED error. If the connection succeeds that you have managed khổng lồ fix the ECONNREFUSED error on your FileZilla FTP client.

We hope that this guide is useful! If you have any other fixes khổng lồ share, or if you have sầu any questions, leave us a comment!