I have MAC OSX 10.9.5 and I'm new to FTP connection on Mac. I couldn't find a clear list of reasons that I cannot connect to a server. The server is running but when I try to connect through FileZilla, command line ftp, or finder ftp I get an error that says 'Connection Refused'. I didn't get this error a few days ago when I tried to connect so what could have been changed?
Macos – Connection Refused on Mac via FTP
ftpmacos
Related Solutions
Response: 227 Entering Passive Mode (192,168,1,78,5,245)
Status: Server sent passive reply with unroutable address. Using server address instead.
It looks like the server is inside a private network, that is behind a router/firewall. But you access the server from outside the private network. Unless the router/firewall has special helpers to deal with this situation and to rewrite the traffic this will not work with passive mode. Given the above response from the server received by the client you have no such router/firewall.
In this case you would have to need active mode. But, if both client and server are behind such a router/firewall and are in different networks even active mode will not work.
So I got this working now. Although it's not a super ideal solution...
I used my phone as a wi-fi hotspot and used the wi-fi from that instead of the one at my flat, and it worked first time. Not exactly sure why, but I think it has something to do with this:
“NAT (Network Address Translation) routers. Many hosts and routers on the internet use the IPv4 protocol. The number of hosts connected to the internet has reached IPv4's design limit for the number of addresses (IPv6 is designed to relieve this). NAT routers allow multiple systems within a LAN to connect to the outside world with one external IP address. Unfortunately, both NAT and personal firewalls conflict with FTP more often than not. To make things worse, some are themselves flawed, causing additional problems regarding FTP.” - (source: https://wiki.filezilla-project.org/Network_Configuration)
I just have to figure out if I can change a setting somewhere to fix this on my normal wi-fi now so I don't have to keep running a hotspot from my phone.
Hopefully this helps some of you guys. I know how frustrating it is!
Best Answer
Connection refused is frequently when the server does not have the ftp service running. Maybe the daemon is not running anymore? (The server may be running, but maybe just not the FTP service).
Another possibility is that the server's firewall is now blocking the FTP ports. Did anything change there?
Is your username and password correctly programmed?
Yet another possibility is that the data port is blocked by the firewall (FTP uses two ports)
Here are some tests you can run: http://kb.siteground.com/ftp_port_21/
You can also test your ftp server remotely: https://ftptest.net/ (to check if the problem is local or not)
Do a test with: telnet url 21 You should get a prompt, where you can log in with user xxx and pass xxx If that works, maybe you have deprogrammed those data in your client.