Page 1 of 1

"ECONNREFUSED - Connection refused by server" after everything is set up.

Posted: 2019-02-04 16:57
by BlackSnowDominic
Heya all, I'm new to this forum so I apoligise if I wrote in the wrong section.
Right now I'm having issues with my small FTP setup that I'm running, gives me the error "ECONNREFUSED - Connection refused by server".
Running this FTP on a Raspberry Pi 3B running OpenMediaVault. Both this and FileZilla as of today are up to date. However for some reason, even with: All ports forwarded, correct modes setup, Firewalls allowed to use FTP ports, etc. this still doesn't work on my side. This is interesting because outside of my network (Using Mobile data or being outside of my house, etc.) I can connect properly without any issues except some account ones which are faults on my side and I'm working on repairing them. Using ftptest.net showed that my server is also setup correctly.
Any help with this?
Dominic.

Re: "ECONNREFUSED - Connection refused by server" after everything is set up.

Posted: 2019-02-04 23:25
by boco
Are you in the same LAN as the server is in? If yes, are you using the private LAN IPv4 to connect (URL and public IPv4 are bound to fail)?

Re: "ECONNREFUSED - Connection refused by server" after everything is set up.

Posted: 2019-02-05 12:57
by BlackSnowDominic
Yup, in the same LAN as my server is. Used both hostname and IPv4 to connect.

Re: "ECONNREFUSED - Connection refused by server" after everything is set up.

Posted: 2019-02-05 23:10
by boco
Connecting from outside using the URL, public IPv4, or IPv6 (if available) means going through the router. If that works, connecting locally must work, too.

LAN IPv4 is the one in the format 10.x.x.x or 192.168.x.x, to name the both most common IP regions.


Yup, in the same LAN as my server is. Used both hostname and IPv4 to connect.
LAN IPv4 (the private one) must be used. The public IPv4 has no meaning inside the NATed LAN.