Skip to content

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

@alirezavafaee

Description

@alirezavafaee

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions