req.ip
Purpose
The IP address of the client who sent this request (req
).
If the trust proxy
option is disabled, this is the "remote address". Otherwise, if trust proxy
is enabled, this is the "upstream address".
Usage
req.ip;
Example
req.ip;
// -> "127.0.0.1"