<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1016426" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1016426</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095306</link>
    <description> &lt;p&gt;Here is what I found on the issue.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
REMOTE_HOST&lt;br /&gt;
The name of the machine from which the client is accessing the form. If the client machine is using a proxy to access the web, then this will be the name of the proxy host. If there does not exist a hostname for the client&#039;s machine, this will be unset. &lt;/p&gt;
&lt;p&gt;REMOTE_ADDR&lt;br /&gt;
The IP address of the client machine. This should be the IP address which the hostname given in REMOTE_HOST will decode to [ie: they should be the same machine]. If the client machine is using a proxy to access the web, this will be the IP address of the proxy machine.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;However some web servers can also intercept the ENV VAR REMOTE_PROXY to determine if the user is accessing through a proxy server, and if they are, you can do a simple check to see if the REMOTE_ADDR is set to the proxy or the IP.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Dec 2001 10:20:48 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1095306 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095296</link>
    <description> &lt;p&gt;Yeah, well the dialup should return the IP of the ISP. The other differences probably would be in the use of proxy servers.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Dec 2001 02:03:46 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1095296 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095294</link>
    <description> &lt;p&gt;*shivers*&lt;br /&gt;
Freaky weird!&lt;/p&gt;
&lt;p&gt;Maybe the routers are handling it differently?&lt;br /&gt;
My router is the Linksys BEFSR41, and it&#039;s acting as the DHCP server.  Anyone use a different setup?&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Dec 2001 01:09:24 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1095294 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095286</link>
    <description> &lt;p&gt;Ok...&lt;br /&gt;
I had 3 friends run this script.&lt;br /&gt;
One was on a LAN and it gave the 192.168.1.1&lt;br /&gt;
Another was on a LAN and it gave his internal IP of 192.168.1.22&lt;br /&gt;
The last one was on a dialup, and it returned his IP.&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Dec 2001 20:42:15 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1095286 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095284</link>
    <description> &lt;p&gt;That&#039;s a weird one. Mine returns the IP address of the remote machine, not the router IP.&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Dec 2001 20:26:09 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1095284 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095252</link>
    <description> &lt;p&gt;I&#039;ve noticed that on my network too.  It seems to return 192.168.1.1 because your &#039;remote computer&#039; is on the LAN.  If you access the site from outside your LAN (on the WAN side), then you should get a real IP.&lt;/p&gt;
&lt;p&gt;I&#039;ve not found a way around this.  It wasn&#039;t crucial for me at the time, so I didn&#039;t spend too much time researching it.  If you find something, let us know.&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Dec 2001 08:02:49 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1095252 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095241</link>
    <description> &lt;p&gt;Ok&lt;br /&gt;
I&#039;m using a router, so $REMOTE_ADDR returns 192.168.1.1&lt;br /&gt;
Is there any way to get around this?&lt;br /&gt;
Thanks&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Dec 2001 03:39:12 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1095241 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-environmental-variables#comment-1095196</link>
    <description> &lt;p&gt;You can get a list of all vars here:&lt;br /&gt;
&lt;a href=&quot;http://www.php.net/manual/en/language.variables.predefined.php&quot; class=&quot;bb-url&quot;&gt;PHP Predefined Variables&lt;/a&gt;&lt;br /&gt;
Or by looking at phpinfo()&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Apache variables&lt;/em&gt;&lt;br /&gt;
$HTTP_REFERER&lt;br /&gt;
$REMOTE_ADDR&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Dec 2001 17:38:34 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1095196 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
