roxy, it uses <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For">the de-facto standard <code>x-forwarded-for</code> header</a> to get the right client IP:</p>
<pre><code class="language-js">const mid = ctx =&gt; {
  console.log(ctx.ip);
};

run(mid).get(&#39;/&#39;);
</code></pre>
<p>It can be useful with services like <code>geoip-lite</code> to find the user&#39;s location:</p>
<pre><code class="language-js">// Localize user depending on their IP
const geoip = require(&#39;