Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I run an FTP server using server port forwards?

forwards FTP port run server
0
Posted

Can I run an FTP server using server port forwards?

0

FTP is a tricky protocol. It’s not a problem to make the control connection work (that’s the one you use to log in and to initiate the transfers), but all data (including directory listings) uses a separate connection either initiated by the server (active mode) or by the client (passive mode). In active mode, the client listens on a port for a connection opened by the server and tells the server about its IP and port number using the “PORT” command. In passive mode, the server gets asked by the client to listen on a port and accept connections from the client; the client uses the “PASV” command to ask the server and the server replies with an IP address and port if it is willing to accept the connection. Now consider your networking situation. Your server listens on IP address 127.0.0.1, it probably doesn’t know the IP address of the YF server (your external IP) so it won’t be able to use it in replies to the PASV command. Even if you forwarded more ports and the server had the abilit

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123