<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting the Real IP Address from a Proxied Request in ATG</title>
	<atom:link href="http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html</link>
	<description>Java, ATG, Seam, and related Technologies</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/comment-page-1#comment-14305</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Fri, 05 Dec 2008 22:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=89#comment-14305</guid>
		<description>@John: if you&#039;re being a router at home, it&#039;s providing NAT (network address translation) so that all your computers at home only use a single real-world routable IP address.  It&#039;s not the same thing as a proxy, so the X-FORWARDED-FOR header will not be set by your router.  There is no way to get your internal NATed IP address from a request to a server.

My code doesn&#039;t display the IP on a page, it modifies the IP address within the scope of an ATG servlet pipeline.  You should be able to make it write to file pretty easily, but I don&#039;t have the time right now to do that for you.

If you&#039;re using Apache it would probably be much simpler to just add the X-FORWARDED-FOR header to the Apache log format, similarly to this:

%{X-Forwarded-For}i %l %u %t &quot;%r&quot; %&gt;s %b &quot;%{Referer}i&quot; &quot;%{User-agent}i&quot;</description>
		<content:encoded><![CDATA[<p>@John: if you&#8217;re being a router at home, it&#8217;s providing NAT (network address translation) so that all your computers at home only use a single real-world routable IP address.  It&#8217;s not the same thing as a proxy, so the X-FORWARDED-FOR header will not be set by your router.  There is no way to get your internal NATed IP address from a request to a server.</p>
<p>My code doesn&#8217;t display the IP on a page, it modifies the IP address within the scope of an ATG servlet pipeline.  You should be able to make it write to file pretty easily, but I don&#8217;t have the time right now to do that for you.</p>
<p>If you&#8217;re using Apache it would probably be much simpler to just add the X-FORWARDED-FOR header to the Apache log format, similarly to this:</p>
<p>%{X-Forwarded-For}i %l %u %t &#8220;%r&#8221; %>s %b &#8220;%{Referer}i&#8221; &#8220;%{User-agent}i&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/comment-page-1#comment-14283</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 05 Dec 2008 05:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=89#comment-14283</guid>
		<description>When I test out your code on my webpage it works, but since I have a router your code displays the IP my router assigns to my computer, 192.168.1.100. Is there a way to display my real IP even when using a router?

Also, is it asking too much for you to edit your Java code and recompile a class that automatically prints the IP to a text file instead of displaying it on the webpage? I am in the process of tracking down a scammer and need some Java code that records every IP address to a text file located on the server. Any help / suggestions would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>When I test out your code on my webpage it works, but since I have a router your code displays the IP my router assigns to my computer, 192.168.1.100. Is there a way to display my real IP even when using a router?</p>
<p>Also, is it asking too much for you to edit your Java code and recompile a class that automatically prints the IP to a text file instead of displaying it on the webpage? I am in the process of tracking down a scammer and need some Java code that records every IP address to a text file located on the server. Any help / suggestions would be greatly appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-04-10 &#124; iKeif</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/comment-page-1#comment-5032</link>
		<dc:creator>links for 2008-04-10 &#124; iKeif</dc:creator>
		<pubDate>Thu, 10 Apr 2008 17:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=89#comment-5032</guid>
		<description>[...] stuff pulled off in Action Script)browser development dhtml interval javascript programming webdev Getting the Real IP Address from a Proxied Request in ATG &#124; Devon Hillard Tech Blog 12 hours, 49 minutes agoDevon shows how to get the REAL IP address using ATGatg code java [...]</description>
		<content:encoded><![CDATA[<p>[...] stuff pulled off in Action Script)browser development dhtml interval javascript programming webdev Getting the Real IP Address from a Proxied Request in ATG | Devon Hillard Tech Blog 12 hours, 49 minutes agoDevon shows how to get the REAL IP address using ATGatg code java [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/comment-page-1#comment-5028</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 10 Apr 2008 05:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=89#comment-5028</guid>
		<description>Honestly, because I don&#039;t use social bookmarking sites myself.  Do you know of a Wordpress plugin for that you&#039;d recommend?  I googled and found several, but would love a recommendation.</description>
		<content:encoded><![CDATA[<p>Honestly, because I don&#8217;t use social bookmarking sites myself.  Do you know of a WordPress plugin for that you&#8217;d recommend?  I googled and found several, but would love a recommendation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keif</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/atg/getting-the-real-ip-address-from-a-proxied-request-in-atg.html/comment-page-1#comment-5027</link>
		<dc:creator>keif</dc:creator>
		<pubDate>Thu, 10 Apr 2008 04:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=89#comment-5027</guid>
		<description>I&#039;m curious why you don&#039;t enable social bookmarking/digging/etc. on your blog entries. I&#039;m definitely bookmarking this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious why you don&#8217;t enable social bookmarking/digging/etc. on your blog entries. I&#8217;m definitely bookmarking this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/16 queries in 0.004 seconds using disk: basic
Object Caching 290/305 objects using disk: basic

Served from: www.digitalsanctuary.com @ 2012-02-08 14:10:19 -->
