<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get the correct IP address in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457443#M9415</link>
    <description>thx, I've implemented this code to asp website:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&lt;BR /&gt;if ipaddress = "" then&lt;BR /&gt;ipaddress = Request.ServerVariables("REMOTE_ADDR")&lt;BR /&gt;end if&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;but the output is empty.</description>
    <pubDate>Tue, 14 Jul 2009 10:25:06 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2009-07-14T10:25:06Z</dc:date>
    <item>
      <title>Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457441#M9413</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I'm using this code:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%=Request.ServerVariables("REMOTE_ADDR")%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;in the .asp webpage installed on the WIN2000 webserver to show via browser the internal IP address from the workstations.&lt;BR /&gt;Normally works, but the problem is, sometimes it shows proxy IP address instead of the workstation.&lt;BR /&gt;Howto solve this problem?</description>
      <pubDate>Fri, 10 Jul 2009 12:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457441#M9413</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2009-07-10T12:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457442#M9414</link>
      <description>Request.ServerVariables("REMOTE_ADDR") can't give you any "real address",&lt;BR /&gt;since no "real address" is ever sent except in INTRANETs.&lt;BR /&gt;An IP address is something used at the network layer, and shouldn't really be used by your application. If your application needs to know the identity of the sending machine, then it should use something like X.509 certificates, which are meant to represent identity (an IP address is not).&lt;BR /&gt;further more you can try when you are using proxy:&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&lt;BR /&gt;if ipaddress = "" then&lt;BR /&gt;ipaddress = Request.ServerVariables("REMOTE_ADDR")&lt;BR /&gt;end if&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hope that it solve your issue and doubt.&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jul 2009 20:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457442#M9414</guid>
      <dc:creator>Nader Qaid A.</dc:creator>
      <dc:date>2009-07-10T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457443#M9415</link>
      <description>thx, I've implemented this code to asp website:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&lt;BR /&gt;if ipaddress = "" then&lt;BR /&gt;ipaddress = Request.ServerVariables("REMOTE_ADDR")&lt;BR /&gt;end if&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;but the output is empty.</description>
      <pubDate>Tue, 14 Jul 2009 10:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457443#M9415</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2009-07-14T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457444#M9416</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;if ipaddress = "" then&lt;BR /&gt;&lt;BR /&gt;put the ip address of the proxy between ""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Tue, 14 Jul 2009 14:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457444#M9416</guid>
      <dc:creator>Nader Qaid A.</dc:creator>
      <dc:date>2009-07-14T14:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457445#M9417</link>
      <description>sorry , but I don't understand.&lt;BR /&gt;Can you pls post the whole code?</description>
      <pubDate>Tue, 14 Jul 2009 14:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457445#M9417</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2009-07-14T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get the correct IP address</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457446#M9418</link>
      <description>&amp;lt;%&lt;BR /&gt;ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&lt;BR /&gt;if ipaddress = "" then &amp;lt;&amp;lt;&amp;lt; add your proxy ip"" here and try &lt;BR /&gt;ipaddress = Request.ServerVariables("REMOTE_ADDR")&lt;BR /&gt;end if&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;example :&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&lt;BR /&gt;if ipaddress = "192.168.11.253"&lt;BR /&gt;ipaddress = Request.ServerVariables("REMOTE_ADDR")&lt;BR /&gt;end if&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;plz reply the results of the outcomes</description>
      <pubDate>Tue, 14 Jul 2009 16:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/get-the-correct-ip-address/m-p/4457446#M9418</guid>
      <dc:creator>Nader Qaid A.</dc:creator>
      <dc:date>2009-07-14T16:15:04Z</dc:date>
    </item>
  </channel>
</rss>

