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

Getting client ip when ftp-srv runs behind of nginx load balancer #373

Open
alirezavafaee opened this issue May 4, 2024 · 0 comments
Open

Comments

@alirezavafaee
Copy link

alirezavafaee commented May 4, 2024

I've created a nodejs app to test getting client ip behind of loadbalancer and I got this result:

~# node tcp.js
TCP Server is running on port 7070.
CONNECTED: 127.0.0.1:35122
DATA 127.0.0.1: PROXY TCP4 214.12.133.55 172.18.0.3 46984 21

I need to get the client ip (214.12.133.55)
I used to get it by:
connection.log.fields.ip
But now I don't know how can I get client ip.

Do you have any solution?

@alirezavafaee alirezavafaee changed the title Client ip when behind of nginx load balancer Getting client ip when ftp-srv runs behind of nginx load balancer May 4, 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

1 participant