<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : IP Address reporting local not internet address</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : IP Address reporting local not internet address]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 15:06:11 +0000</pubDate>
  <lastBuildDate>Thu, 08 Jun 2006 08:27:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=20219</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[IP Address reporting local not internet address : That is the function to change...]]></title>
   <link>https://forums.webwiz.net/ip-address-reporting-local-not-internet-address_topic20219_post108649.html#108649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 20219<br /><strong>Posted:</strong> 08&nbsp;June&nbsp;2006 at 8:27am<br /><br />That is the function to change how the IP address is returned.<br><br>The problem is if you change it to <font color="#ff0000">Request.ServerVariables("REMOTE_ADDR") <font color="#000000">then you are even less likely to get the correct IP address.<br><br>The problem is that IP addresses must be got from the browsers header, which can be changed to hide IP addresses, also if proxy servers, etc. are used then you won't get the IP address using the method you mention.<br></font></font>]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 08:27:50 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/ip-address-reporting-local-not-internet-address_topic20219_post108649.html#108649</guid>
  </item> 
  <item>
   <title><![CDATA[IP Address reporting local not internet address :  I have noticed that the IP address...]]></title>
   <link>https://forums.webwiz.net/ip-address-reporting-local-not-internet-address_topic20219_post108625.html#108625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=23591">jckruger</a><br /><strong>Subject:</strong> 20219<br /><strong>Posted:</strong> 08&nbsp;June&nbsp;2006 at 2:19am<br /><br /><DIV></DIV><DIV></DIV>I have noticed that the IP address that is logged for some of the users of my forum are sometimes reporting as their local IP address when behind a NAT firewall. Is this the function that interrogates the IP address of the PC when posting a message?. This is from functions_common.asp <DIV>&nbsp;</DIV><DIV>--------------------------------------------%&gt;----------------------------------------------</DIV><DIV><FONT color=#ff0000>'******************************************<BR>'***&nbsp; Get users IP address&nbsp;&nbsp;***<BR>'******************************************</FONT></DIV><DIV><FONT color=#ff0000>Private Function getIP()</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;Dim strIPAddr</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'If they are not going through a proxy get the IP address<BR>&nbsp;If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" OR InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "unknown") &gt; 0 Then</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;strIPAddr = Request.ServerVariables("REMOTE_ADDR")</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'If they are going through multiple proxy servers only get the fisrt IP address in the list (,)<BR>&nbsp;ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",") &gt; 0 Then</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",")-1)</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'If they are going through multiple proxy servers only get the fisrt IP address in the list (;)<BR>&nbsp;ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";") &gt; 0 Then</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";")-1)</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Get the browsers IP address not the proxy servers IP<BR>&nbsp;Else<BR>&nbsp;&nbsp;strIPAddr = Request.ServerVariables("HTTP_X_FORWARDED_FOR")<BR>&nbsp;End If</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Remove all tags in IP string<BR>&nbsp;strIPAddr =&nbsp; removeAllTags(strIPAddr)</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Place the IP address back into the returning function<BR>&nbsp;getIP = Trim(Mid(strIPAddr, 1, 30))<BR>End Function</FONT></DIV><DIV>--------------------------------------------%&gt;----------------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>In another bit of my code in default.asp I am using:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>Request.ServerVariables("REMOTE_ADDR") </FONT>and it is showing the 'Internet' address rather than the local PC ip address and so is showing what I want. This is&nbsp;required if anyone posts bad information&nbsp;I can look up their ISP and take legal action if required.&nbsp;&nbsp;I have seen some posts to my forum that are showing local 192.xxx.xxx.xxx addresses. Can someone tell me if this is the correct file I should be editing to fix my problem.</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>&nbsp;</DIV><DIV>Justin</DIV><span style="font-size:10px"><br /><br />Edited by jckruger - 08&nbsp;June&nbsp;2006 at 2:21am</span>]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 02:19:24 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/ip-address-reporting-local-not-internet-address_topic20219_post108625.html#108625</guid>
  </item> 
 </channel>
</rss>