Tried everything to make my server work

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
Pipo21
500 Command not understood
Posts: 3
Joined: 2023-08-10 12:37
First name: Pierre
Last name: Potin

Tried everything to make my server work

#1 Post by Pipo21 » 2023-08-10 12:49

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 !

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

Re: Tried everything to make my server work

#2 Post by botg » 2023-08-10 14:04

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?

Pipo21
500 Command not understood
Posts: 3
Joined: 2023-08-10 12:37
First name: Pierre
Last name: Potin

Re: Tried everything to make my server work

#3 Post by Pipo21 » 2023-08-10 14:13

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.

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

Re: Tried everything to make my server work

#4 Post by botg » 2023-08-10 17:51

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.

Pipo21
500 Command not understood
Posts: 3
Joined: 2023-08-10 12:37
First name: Pierre
Last name: Potin

Re: Tried everything to make my server work

#5 Post by Pipo21 » 2023-08-14 14:15

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

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

Re: Tried everything to make my server work

#6 Post by botg » 2023-08-14 21:18

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?

Post Reply