<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Get Real IP Address of Client'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Mon, 20 Apr 2026 21:22:54 +0000</lastBuildDate>
    <item>
      <title>giak said on 14/Jan/2010</title>
      <link>https://snipplr.com/view/20141/get-real-ip-address-of-client</link>
      <description>&lt;p&gt;alternative :&#13;
`&#13;
function neo_get_ip () {&#13;
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {&#13;
        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];&#13;
    } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {&#13;
        $ip = $_SERVER['HTTP_CLIENT_IP'];&#13;
    } else {&#13;
        $ip = $_SERVER['REMOTE_ADDR'];&#13;
    }&#13;
    return $ip;&#13;
}&#13;
`&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jan 2010 01:51:01 UTC</pubDate>
      <guid>https://snipplr.com/view/20141/get-real-ip-address-of-client</guid>
    </item>
  </channel>
</rss>
