code: function remoteAddress(req) {
          assert.ok(req, 'req');
  
          if(req.get("X-Real-IP")) {
              return req.get("X-Real-IP");
          }
  
          if (req.ip) {
              return req.ip;
          }
  
          if (req._remoteAddress) {
              return req._remoteAddress;
          }
  
          if (req.connection) {
              return req.connection.remoteAddress;
          }
  
          // TODO: This doesn't appear to ever get hit and causes an assertion
          // in the IP lookup due to undefined not being an IP so we need to investigate
          // what to do in this particular case (which again doesn't seem to have ever
          // actually occurred)
          return undefined;
      }
docs: TODO: stolen from http-service could stand to be a re-usable helper. 
  Get remote address of the client.
  @private
  @param {req} req from express
  @returns {String|Undefined} either the ip of requester or undefined
  if unavailable