function getip (req) {
  return req.ip ||
    req._remoteAddress ||
    (req.connection && req.connection.remoteAddress) ||
    undefined
}
Get request IP address.

@private
@param {IncomingMessage} req
@return {string}