Mark the request fields :
remote_ip - client IP address, for example: {151, 236, 219, 228}. This field is for overwriting with forks that understand, for example. X-Forwarded-For header or HAProxys PROXY protocol. By default, it sets IP addresses.
This is what you are looking for:
conn.remote_ip
source share