The IP address of the client who sent this request (
If your Sails app is deployed behind a proxy (on Heroku, for example), then you'll need to do a bit of additional configuration. Normally,
req.ipis simply the "remote address"-- the IP address of the requesting user agent. But if the sails.config.http.trustProxy option is enabled, this is the "upstream address".
req.ip; // -> "127.0.0.1"