title: Why does $_SERVER['REMOTE_ADDR'] return the gateway ip rather than the remote ip with a fortigate router?
body: <p>I have a server connected to the internet through a Fortigate 40C. When my php code calls <code>$_SERVER['REMOTE_ADDR']</code>, it returns the ip address of the router (the fortigate) rather than the remote IP accessing the php script.</p>
  
  <p>Why is this?</p>