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 !
Tried everything to make my server work
Moderator: Project members
Re: Tried everything to make my server work
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?
The port in the reply to the PASV command is 52963, did you forward this very port?
-
- 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
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.
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
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.
-
- 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
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
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
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?