Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passive Mode does not work from outside of LAN but works within same LAN #59

Closed
qiweimao opened this issue Jun 2, 2024 · 1 comment
Closed

Comments

@qiweimao
Copy link

qiweimao commented Jun 2, 2024

I understand this is a closed issue: #8
Please let me know if i should comment via the above link directly.

I've encountered a problem where both FileZilla and command line FTP clients

  • fail to connect from outside the LAN.
  • However, passive mode connections work fine within the same LAN.

The client does not receive any response from the server when attempting to connect from outside the LAN in passive mode. Below is a sample response:

Status:      	Connection established, waiting for welcome message...
Response: 	220 --- Welcome to Simply FTP server ---
Status:      	Plain FTP is insecure. Please switch to FTP over TLS.
Response: 	220 ---   By Renzo Mischianti   ---
Response: 	220 --    Version 2.1.7 (2023-10-17)    --
Command: 	USER esp32
Response: 	331 Ok. Password required
Command: 	PASS *****
Response: 	230 Ok
Command: 	OPTS UTF8 ON
Response: 	200 OK, UTF8 ON
Status:      	Logged in
Status:      	Retrieving directory listing of "/"...
Command: 	CWD /
Response: 	250 Directory changed to /
Command: 	TYPE I
Response: 	200 TYPE is now 8-bit binary
Command: 	PASV

Please advise, thanks! Qiwei Mao.

I found another implementation with PASV implemented, will experiment with it and report back.

@qiweimao qiweimao changed the title Passive Mode does not work if connection is outside of LAN ESP32 is on Passive Mode does not work from outside of LAN but works within same LAN Jun 2, 2024
@xreef
Copy link
Owner

xreef commented Jun 8, 2024

Hi,
It can't work without manual intervention on your network and config; you must set the correct IP and manage the routing of the request.
Bye Renzo

@xreef xreef closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants