<div dir="ltr"><div class="gmail_extra"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Despite what you are stating, I see a valid NZ IP address in the '$_SERVER'​ environment variables of the PHP instance running behind Nginx (most probably 210.55.x.x prefix).<br>

<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">The Apache remote address is not the right one.<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Since you failed to explain your setup, I suppose Nginx proxies traffic to Apache.<br>

</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">That would explain the REMOTE_ADDR is the one from the gateway.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">

Your proxy configuration fails to pass the original visitor IP address through the HTTP_X_FORWARDED_FOR field.<br>---<br></div><font size="1"><span style="color:rgb(102,102,102)"></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>