How to get real request client's ip from App Engine
<p>I have set <code>app.set('trust_proxy', 1);</code> just like <a href="https://cloud.google.com/nodejs/resources/runtime#extending_the_runtime" rel="nofollow">this page</a> suggests 
but for each request it gives the following ip address 169.254.160.2 ...</p>

<pre><code>req.ip =&gt; 169.254.160.2
req.ips =&gt; [ '169.254.160.2' ]
</code></pre>

<p>Headers suggested headers are also with the same value ...
So how do I get the ip because all "what is my ip" sites tells me that my ip is 130.204.67.112</p>

<p>So how do i get my real ip in App Engine ?</p>

<p>ps. I'm using custom docker container for my app if that matters (I think it dosen't but still) I have migrated from heroku where it needs <code>app.enable('trust_proxy')</code> and it did work.</p>