Where does $remote_addr come from?

Paul Nickerson pnickerson at cashstar.com
Thu Feb 2 22:02:43 UTC 2017

According to NGINX documentation, $remote_addr is an embedded variable in
the ngx_http_core_module module. I have searched all around, including the
source code, trying to figure out exactly how NGINX generates this
variable, but I have been unable to find anything beyond the description
"client address". Currently, my best guess is that it's the source address
field in the incoming TCP/IP packet's IPv4 internet header. Is this
correct? Or, does it come from somewhere else?

Relevant documentation:

Thank you,
-- Paul Nickerson



The attached information is PRIVILEGED AND CONFIDENTIAL and is intended 
only for the use of the addressee named above.  If the reader of this 
message is not the intended recipient or the employee or agent responsible 
for delivering the message to the intended recipient, please be aware that 
any dissemination, distribution or duplication of this communication is 
strictly prohibited. If you receive this communication in error, please 
notify us immediately by telephone, delete the message and destroy any 
printed copy of the message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170202/9e4e15d5/attachment.html>

More information about the nginx mailing list