69

I am trying to connect to a networked machine's FileZilla server but my FileZilla Client is giving the following error while connecting. The error is:

"Connection attempt failed with ECONNREFUSED - Connection refused by server"

Windows Firewall is turned off on that machine and i had provided the valid credentials in my FTP Client.

Thanks in advance

bipen
  • 36,319
  • 9
  • 49
  • 62
Nomi Khan
  • 1,177
  • 4
  • 11
  • 15

4 Answers4

97

FTP protocol may be blocked by your ISP firewall, try connecting via SFTP (i.e. use 22 for port num instead of 21 which is simply FTP).

For more information try this link.

Matteo Baldi
  • 5,613
  • 10
  • 39
  • 51
Llewellyn Collins
  • 2,243
  • 2
  • 23
  • 37
39

Use port number 22 (for sftp) instead of 21 (normal ftp). Solved this problem for me.

Deepak Yadav
  • 1,724
  • 3
  • 23
  • 38
  • 1
    You need a SFTP-Server to use the port number 22. It does not work for a normal web server with FTP connection! – Suriyaa Jan 05 '16 at 11:42
5

I solved this error

A connection attempt failed with "ECONNREFUSED - Connection refused by server"

by changing my port to 22 that was successful

Thilina Dharmasena
  • 2,243
  • 2
  • 19
  • 27
  • 4
    Any chance on more details that might help others? Which port, where to change that. – Anthon Apr 02 '13 at 05:06
  • You change the port when you save the server or, when using quick connect, the Port: text box immediately left of the Quickconnect button. Note: Quickconnect uses port 21 (SFTP/SSH) by default. – Eric H Jul 08 '13 at 22:21
2

For me, I was receiving this error when connecting to the new IP Address I had configured FileZilla to bind to and saved the configuration. After trying all of the other answers unsuccessfully, I decided to connect to the old IP Address to see what came up; lo and behold it responded.

I restarted the FileZilla Windows Service and it immediately came back listening on the correct IP. Pretty elementary, but it cost me some time today as a noob to FZ.

Hopefully this helps someone out in the same predicament.

Moby's Stunt Double
  • 2,540
  • 1
  • 16
  • 32