We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to get the ip address of the client of a file that was just uploaded to the server?
Something like this:
connection.on('STOR', (error, fileName,client_ipaddress) => { console.log('the client's ip address is: + client_ipaddress); });
Or get the connection id of the client that just uploaded a file to the server?
connection.on('STOR', (error, fileName,client_id) => { console.log('the client's ip address is: + client_id); });
The text was updated successfully, but these errors were encountered:
Yes. you need the connection object
ftpServer.on("login", ({ username, password, connection }, resolve, reject) => { if (username === CONFIG.user && password === CONFIG.password) { connection.on('STOR', (error, fileName) => { console.log('the client's ip address is: + connection.log.fields.ip); });
Sorry, something went wrong.
No branches or pull requests
Is it possible to get the ip address of the client of a file that was just uploaded to the server?
Something like this:
Or get the connection id of the client that just uploaded a file to the server?
Something like this:
The text was updated successfully, but these errors were encountered: