Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFAILED TO UPLOAD WHEN I CONNECT TO FTP SERVER BY PUBLIC IP #143
Comments
|
Sounds like a firewall and/or NAT problem. Also just to make sure, please check you use the latest nodeftpd (see #115), and report which version you used. |
|
Thanks for answering! How can I enable the active transfer or the passive transfer mode? |
|
Which transfer mode to use, is a decision of the client program. Usually the default is active and they have a checkbox to enable passive mode instead. |
|
How can I specify the External Server IP Address for passive mode transfers? There is a way to do that? |
|
It's the same issue in FileZilla when you try to connect in the same way! |
|
Sorry for the late reply, Github failed to notify me. For this scenario you need either an FTP-aware NAT, or an option in the FTP server to impersonate a custom IP address rather then the one it considers itself to use. This latter option is currently missing. I consider this a bug and will make a PR for it. Thank you for reporting it! |
Fixes nodeftpd#143.
|
I drafted it but I cannot currently test it myself. Could you @abdias-alvarado please test if it works for you and solves the NAT problem? |
I can upload files from the CyberDuck client using
127.0.0.1when I'm in running the server locally. I have open the router port and I've let the firewall know the passive ports range which is the same thatpasvPortRangeStartandpasvPortRangeEnd.When I try to connect to the Public IP or to the Local IP Address from another computer, my server receives the request and let me log in, and it shows me the directories and files I have, so this is fine, but when I try to upload a file this tries and tries and it re-login but finally responds with failed to upload file.
That does not happen when I try to upload a file in the same machine I'm running the server.
Server Details:
Windows Server 2012 E
FTPD Server
npmversion 6.4.1nodeversion 10.15.3Thanks!