ECONNREFUSED - Connection refused by server

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Message
Author
Soft Bulk
500 Command not understood
Posts: 1
Joined: 2010-12-09 12:31
First name: Sanh
Last name: Thi

Re: ECONNREFUSED - Connection refused by server

#61 Post by Soft Bulk » 2010-12-09 19:05

Network Configuration guide is realy helpful, I fixed my problem.

Thanks!

matiaspolanco
500 Command not understood
Posts: 1
Joined: 2011-01-19 21:42
First name: Matias
Last name: Polanco

Re: ECONNREFUSED - Connection refused by server

#62 Post by matiaspolanco » 2011-01-19 22:12

twlada wrote:The solutions that works for me: in FileZilla change the Servertype from FTP to SFTP. (On general tab below the name of the host).
Works of me, in Mac Os .. .thanks!

wallemalling
500 Command not understood
Posts: 1
Joined: 2011-02-01 13:22
First name: walther
Last name: hansen

Re: ECONNREFUSED - Connection refused by server

#63 Post by wallemalling » 2011-02-01 13:30

i did have same problem:ECONNREFUSED - Connection refused by server....

ALL i did have to do was to set the max upload back to 1 ( in transfer setting )

it did start my FZ again

P.S well juust to tell so all is clear...... this was FZ with PS 3 problem: ECONNREFUSED - Connection refused by server....

lenzeppellin
500 Command not understood
Posts: 4
Joined: 2011-05-18 05:42
First name: Patrick
Last name: Valdes

Re: ECONNREFUSED - Connection refused by server

#64 Post by lenzeppellin » 2011-05-18 06:23

I had the same problem today with a client of mine and I figured out the problem myself. A lot of people think this is a firewall issue but I disabled my firewall and it still didn't work for me. What you need to do is to access your router and create a single port forward - forwarding port 21 - using TCP to the local IP address of your FTP server. You have to know the local IP address of your FTP server.

In your router, you can check the IP address of the device that acts as your FTP server in the basic setup area, since most everyone is on a DHCP connection just click on 'DHCP reservation' if your router supports it and you can even reserve IP address of your home or office devices that way if you need to powercycle (reboot) your network you still retain the same local IP.

Example, I have a Dlink DNS-323 NAS Server that serves my ftp and I just go to my Linksys router's port forwarding portion. Here's an attached picture of what I did. Anyway, I hope this helps people that have been having this issue. Cheers!
Attachments
linksysprtfwd.jpg
linksysprtfwd.jpg (77.72 KiB) Viewed 52569 times

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: ECONNREFUSED - Connection refused by server

#65 Post by boco » 2011-05-18 08:08

single port forward - forwarding port 21
Wrong, not enough for Passive mode. Network Configuration
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

lenzeppellin
500 Command not understood
Posts: 4
Joined: 2011-05-18 05:42
First name: Patrick
Last name: Valdes

Re: ECONNREFUSED - Connection refused by server

#66 Post by lenzeppellin » 2011-05-19 04:21

Well, you can say wrong. However, I fixed it on 2 separate ftp servers... It may not work for everyone but it's worth a try...

Oh and by the way, by default FileZilla is set to passive. I never had to change settings in FileZilla at all so yes I am running in passive mode.

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: ECONNREFUSED - Connection refused by server

#67 Post by boco » 2011-05-19 05:36

We speak about the FTP server (Passive data ports). FileZilla Client in Passive mode needs no port forwards whatsoever, as in Passive mode all connections are outgoing client-side.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

bjjinchicago
500 Command not understood
Posts: 1
Joined: 2011-05-24 18:03
First name: Brendan
Last name: Hufford

Re: ECONNREFUSED - Connection refused by server

#68 Post by bjjinchicago » 2011-05-24 18:06

I ran the network configuration wizard and everything works great on there. I go to login and I get this message:

Status: Resolving address of ftp.bjjinchicago.com
Status: Connecting to 74.200.243.251:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server", trying next address.
Status: Connecting to 72.233.69.6:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server", trying next address.
Status: Connecting to 76.74.254.123:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server", trying next address.
Status: Connecting to 74.200.244.59:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server", trying next address.
Status: Connecting to 76.74.254.120:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server", trying next address.
Status: Connecting to 72.233.2.58:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Error: Could not connect to server

opened the port on the firewall as well and did every time I could find. I ham plugged directly into the modem (this solved the problem i was having earlier with the connection wizard.

User avatar
botg
Site Admin
Posts: 35547
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: ECONNREFUSED - Connection refused by server

#69 Post by botg » 2011-05-24 19:29

Getting the same here. Looks like there really is no FTP server running at that address.

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: ECONNREFUSED - Connection refused by server

#70 Post by boco » 2011-05-25 07:32

Code: Select all

09:29:32	Status:	Resolving address of ftp.bjjinchicago.com
09:29:33	Status:	Connecting to 174.132.105.199:21...
09:29:33	Status:	Connection established, waiting for welcome message...
09:29:33	Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
09:29:33	Response:	220-You are user number 1 of 50 allowed.
09:29:33	Response:	220-Local time is now 02:29. Server port: 21.
09:29:33	Response:	220 You will be disconnected after 15 minutes of inactivity.
09:29:33	Command:	USER anonymous
09:29:33	Response:	230 Anonymous user logged in
09:29:33	Command:	SYST
09:29:33	Response:	215 UNIX Type: L8
09:29:33	Command:	FEAT
09:29:33	Response:	211-Extensions supported:
09:29:33	Response:	 EPRT
09:29:33	Response:	 IDLE
09:29:33	Response:	 MDTM
09:29:33	Response:	 SIZE
09:29:33	Response:	 REST STREAM
09:29:33	Response:	 MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
09:29:33	Response:	 MLSD
09:29:33	Response:	 AUTH TLS
09:29:33	Response:	 PBSZ
09:29:33	Response:	 PROT
09:29:33	Response:	 ESTA
09:29:33	Response:	 PASV
09:29:33	Response:	 EPSV
09:29:33	Response:	 SPSV
09:29:33	Response:	 ESTP
09:29:33	Response:	211 End.
09:29:33	Status:	Connected
09:29:33	Status:	Retrieving directory listing...
09:29:33	Command:	PWD
09:29:34	Response:	257 "/" is your current location
09:29:34	Command:	TYPE I
09:29:34	Response:	200 TYPE is now 8-bit binary
09:29:34	Command:	PASV
09:29:34	Response:	227 Entering Passive Mode (174,132,105,199,236,239)
09:29:34	Command:	MLSD
09:29:34	Response:	150 Accepted data connection
09:29:34	Response:	226-Options: -a -l 
09:29:34	Response:	226 3 matches total
09:29:34	Status:	Directory listing successful
09:29:42	Status:	Disconnected from server
Server works now, on a completely different IP. Looks like they moved and DNS changes didn't propagate yet.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

jhadi624
500 Command not understood
Posts: 1
Joined: 2011-06-01 10:31
First name: Jon
Last name: Hadi

Re: ECONNREFUSED - Connection refused by server

#71 Post by jhadi624 » 2011-06-01 10:34

try to check if the ftp port open on the server, i got this error also today.

kiwiservices
500 Command not understood
Posts: 1
Joined: 2011-05-24 19:04
First name: Stacey
Last name: Tatum
Location: dallas

Re: ECONNREFUSED - Connection refused by server

#72 Post by kiwiservices » 2011-06-03 08:17

I am having the correct FTP details, when I am trying to connect to the server it says request denied. Witht the same login info, if I tried with Cute FTP it is working, what may be the problem?

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: ECONNREFUSED - Connection refused by server

#73 Post by boco » 2011-06-03 10:37

Please post a log of a FileZilla connection attempt.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

cyril85
500 Command not understood
Posts: 1
Joined: 2011-07-13 07:02
First name: Boon How
Last name: Tan

Re: ECONNREFUSED - Connection refused by server

#74 Post by cyril85 » 2011-07-13 07:32

hi, I am from Malaysia and learning to configure FTP in my company.
the network infrastructure as below:
3 ISP(streamyx, unifi, my kris), 1 of the ISP consist of router&modem and the others 2 only have modem, 3 of the ISP also will connect to my firebox(firewall). From the firewall it will link to switch hub then only reach my PC.
I have done configure in the router & firebox, but seem it wont connect by outsider. Do i need any extra configuration.
what i configure is portfowarding in dlink router for port 21 and port 50000-60000. For firewall, I have set in policy manager, to allow trusted & external connection for port 21 and port 50000-60000.

in my client side(external network) when connect it show
Status: Delaying connection for 1 second due to previously failed connection attempt...
Status: Connecting to 1xx.1xx.1xx.xxx:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Error: Could not connect to server

the client side is ok when I run ftp wizzard, so I assume the configuration in ftp server went wrong.

what do i still need to set in the server? example in edit-> setting-> passive mode

one more thing, the IP i key in filezilla client is the IP I saw in whatismyip.com. Is that correct?

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: ECONNREFUSED - Connection refused by server

#75 Post by boco » 2011-07-13 12:38

I guess the client is stopped even before reaching the FTP server. Does the server log show any incoming connection?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply