Page 1 of 1

ECONNREFUSED after doing everything

Posted: 2020-05-25 10:05
by Edward205
Hello! This is my first post on the forum, sorry if I make any mistakes here. I wanted to set up an FTP server with Filezilla and after I did everything I had to do, I get "ECONNREFUSED" error. So, I did the following things:
1. Added inbound rule to allow ports 20-60 (I want to use port 50 but I added more just to be sure it works) Image
2. Forwarded ports in my router's settings like this Image
3. Tried to connect to my server on https://canyouseeme.org/ and on my phone. Image
I can't find anyone that has a similar issue to mine. It's my first time trying to do something like this.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-25 12:50
by botg
Don't limit the WAN Host, it could be anything.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-26 11:30
by Edward205
What? ~I don't think limited anything. Sorry if I'm dumb~
Edit: changed WAN Host Start IP Address to 192.169.1.0 and WAN Host End IP Address to 192.168.1.10. I think this is what you meant.
Edit 2: Bitdefender free (my antivirus) does not have firewall and my isp is not blocking the port.
Edit 3: Just noticed I don't have ipv6 ip adress. Maybe that's why it's not working?
Edit 4: I also get this error in log

Code: Select all

You appear to be behind a NAT router. Please configure the passive mode settings and forward a range of ports in your router.
Warning: FTP over TLS is not enabled, users cannot securely log in.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-26 20:31
by boco
You need to read the Network Configuration Guide and configure both your server machine (including FZ Server's Passive settings) and your network (including router) correctly.
changed WAN Host Start IP Address to 192.169.1.0 and WAN Host End IP Address to 192.168.1.10. I think this is what you meant.
No, that's not what was said. He said "Don't limit". Remove anything from WAN Host (or write 0.0.0.0 if you need to put anything in there).
There are even two errors here, first the limiting itself (as you don't know which IPs want to connect to your server), and second the fact you entered private (LAN) IPs here (192.168.0.0/16 is a private IP range and not used on the Internet). That will never work if you want to accept connections from the "outside".
Just noticed I don't have ipv6 ip adress. Maybe that's why it's not working?
Currently, it's optional and not the problem.

Another note: The ports 1 up to 1024 are privileged, they are reserved for special services. Using any of these ports (except 21 and 990) for FTP might not work at all. The test even issues a warning, FileZilla will, too. Use 21 or ports above 1024.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-27 18:40
by Edward205
I can not remove the wan host limit, nor write 0.0.0.0 because it gives me an error: Image
I have read the network configuration guide and I am sure that Filezilla is set up correctly.
This is my router configuration Image

Re: ECONNREFUSED after doing everything

Posted: 2020-05-27 23:51
by boco
Try if it eats 0.0.0.1 - 255.255.255.254 (or 223.255.255.254).

That's a weird thing. Limiting WAN addresses makes no sense, as you don't know them in advance.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-28 06:13
by Edward205
Thank you!! It's really weird that it doesen't like zeros. The only way i could get it to not limit the wan host is by setting it to 1.0.0.0 - 223.255.255.254. I hate the settings menu of this router but i have to use it to work with my isp.
Please lock this topic as my issue has been solved.

Re: ECONNREFUSED after doing everything

Posted: 2020-05-28 11:04
by boco
[Locked] on request of topic owner. For request to re-open (topic owner only), PM to me or botg.