title: How to get client IP address in Azure Functions node.js?
body: <p>I have an Azure function written on node.js. How could I retrieved an IP address of a client that called the function?</p>
  
  <p>What I've found so far:</p>
  
  <ol>
  <li>An <a href="https://stackoverflow.com/questions/37582553/how-to-get-client-ip-address-in-azure-functions-c">answer</a> to the same question, but using C#.</li>
  <li><p>It is possible to read it from headers:</p>
  
  <pre><code>module.exports = function (context, req) {
      var ip = req.headers['x-forwarded-for']    
  }
  </code></pre></li>
  </ol>
  
  <p>Is it reliable to get the ip this way, since it can be easily changed on the way to the function?</p>