Page 1 of 1

Tried everything to make my server work

Posted: 2023-08-10 12:49
by Pipo21
Hello everybody,

In first, sorry for my english.

Then, I got a server on my pc with filezilla. In client side, I can reach my server in local with no problem, but outside my LAN, that is impossible.

I write my public IP in host and the error is :

Commande : PWD
Réponse : 257 "/" is current directory.
Commande : TYPE I
Réponse : 200 Type set to I
Commande : PASV
Réponse : 227 Entering Passive Mode (x,x,x,x,206,227)
Commande : MLSD
Réponse : 150 About to start data transfer.
Erreur : Les données de connexion ne peuvent pas être établies : ECONNREFUSED - Connexion refusée par le serveur

As you can see, the passiv mode send back my public IP and a port around 50000, as I configured it. Those 2 are redirect to the same port range on my pc (192.168.1.80) on my routeur's config.
I shut down my firewall.

I tried so many things that I can't remember all of them and my brain melting. I don't like to ask some help, but I'm out of ideas to try.

Thank you !

Re: Tried everything to make my server work

Posted: 2023-08-10 14:04
by botg
You can test your server on https://ftptest.net/

The port in the reply to the PASV command is 52963, did you forward this very port?

Re: Tried everything to make my server work

Posted: 2023-08-10 14:13
by Pipo21
This kind of service give me the same result that filezilla's logs :

Error: Connection timed out

Timeouts are usually caused by some router and/or firewall that is interrupting the connection.
Try uninstalling all firewalls and plug your computer directly into your modem, thus bypassing the router.

Yes, I forward a port range from 49152 to 54000, this is the range that I configured in my passive mode.
I redirect it to the same range on my local.

Re: Tried everything to make my server work

Posted: 2023-08-10 17:51
by botg
Is your router capable of proper range forwards? There are some routers which either don't do it at all, or map the entire external range to a single local port.

Re: Tried everything to make my server work

Posted: 2023-08-14 14:15
by Pipo21
I decided to forward port 5000 and 5001 in my router's config, individually, (and in my passiv mode) to be sure that the problem doesn't come from the range, but I sill got the same mistake.

Commande : PWD
Réponse : 257 "/" is current directory.
Commande : TYPE I
Réponse : 200 Type set to I
Commande : PASV
Réponse : 227 Entering Passive Mode (x,x,x,x,206,227)
Commande : MLSD
Réponse : 150 About to start data transfer.
Erreur : Les données de connexion ne peuvent pas être établies : ECONNREFUSED - Connexion refusée par le serveur

Re: Tried everything to make my server work

Posted: 2023-08-14 21:18
by botg
206*256+227 isn't within the range from 5000 to 5001. Did you configure the server to use the range from 5000 to 5001?