I would like create txt. or cvs. file and send that in my FTP server.
When I use file extension for that, the problem It’s when I put for example “/test.txt”, this file is public.
And I know, when I put “test.txt”, this file is private. But how can I get this private file with a path ?
After some research, I have installed the filezilla software that can turn my PC into FTP server.
I think to found the problem, but not the solution…. :
FTP can be used in two different ways :
In active mode, it is the FTP client that determines which connection port to use to enable data transfer. Thus, for the exchange of data to be done, the FTP server will initialize the connection of its data port (port 20) to the port specified by the client. The client will then have to configure his firewall to allow new incoming connections so that data exchange takes place. In addition, it can be problematic for users trying to access FTP servers when these users are behind a NAT gateway. Given how NAT works, the FTP server initiates the data connection by connecting to the external NAT gateway address on the chosen port. Some NAT gateways have no match for the received packet in the state table, the packet will be ignored and will not be delivered to the client.
In passive mode, the FTP server itself determines the connection port to be used to enable the data connection and communicates it to the client. If a firewall is present in front of the server, it must be configured to allow the data connection. The advantage of this mode is that the FTP server does not initialize any connection. This mode works well with clients behind a NAT gateway. In new implementations, the client initializes and communicates directly through port 21 of the server; this simplifies server firewall configurations.
NAT
In a computer network, a router is said to make network address translation (NAT) when it maps IP address to other IP address. In particular, a common case is to allow machines with address that are part of an intranet and are neither unique nor routable across the Internet, to communicate with the rest of the Internet by pretending to use unique and routable external address.
Well … I tried on another FTP application, and there is a passive and active mode.
When I am in LAN, both modes work.
But with in WAN, only the passive mode works.
This is the Kodular extension that does not use passive mode …