<?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: Linux: How do you find out what your server&#8217;s outgoing ip is?</title>
	<atom:link href="http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/feed/" rel="self" type="application/rss+xml" />
	<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/</link>
	<description>Enterprise level solutions, LAMP, Linux, Apache, MySQL, PHP, Perl, Windows, Cache, Optimization</description>
	<lastBuildDate>Mon, 16 Apr 2012 22:54:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Maas</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-852</link>
		<dc:creator>David Maas</dc:creator>
		<pubDate>Sun, 14 Jun 2009 04:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-852</guid>
		<description>I used to use whatismyip, but the html gets annoying, so I created http://ip.admiralsananda.net - it&#039;s just a simple perl script:

$ cat ip.pl
#!/usr/bin/perl

print &quot;Content-type: text/plain; charset=iso-8859-1\n\n&quot;;
print &quot;$ENV{&#039;REMOTE_ADDR&#039;}&quot;;
print &quot;\n\n&quot;;


It&#039;s useful to have this script (or something similar) because then you can use the output in bash scripts without tons of sanitization/parsing</description>
		<content:encoded><![CDATA[<p>I used to use whatismyip, but the html gets annoying, so I created <a href="http://ip.admiralsananda.net" rel="nofollow">http://ip.admiralsananda.net</a> &#8211; it&#8217;s just a simple perl script:</p>
<p>$ cat ip.pl<br />
#!/usr/bin/perl</p>
<p>print &#8220;Content-type: text/plain; charset=iso-8859-1\n\n&#8221;;<br />
print &#8220;$ENV{&#8216;REMOTE_ADDR&#8217;}&#8221;;<br />
print &#8220;\n\n&#8221;;</p>
<p>It&#8217;s useful to have this script (or something similar) because then you can use the output in bash scripts without tons of sanitization/parsing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvertip257</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-845</link>
		<dc:creator>silvertip257</dc:creator>
		<pubDate>Thu, 14 May 2009 17:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-845</guid>
		<description>I use the following code for my own external IP script (used with Torsmo/Conky).

wget -q -O - http://www.whatismyip.com/automation/n09230945.asp
# basically the automation page
# that someone else mentioned in an earlier comment
# saves bandwidth!

For sometime, there was actually a complaint message posted on WhatIsMyIP.com&#039;s website ... it linked to the automation page and requested that scripts have a reasonable hit frequency (NOT every two minutes or less ... more like 30 minutes to an hour or more).  I know for example my dynamic IP at home does not change for months and the DDNS script on my router does not try to update my IP on DynDNS all that often either.

People need to think before they code (even pseudocode first) and test the code ... and when networks are involved use tcpdump or Wireshark to verify how much network traffic you are creating!</description>
		<content:encoded><![CDATA[<p>I use the following code for my own external IP script (used with Torsmo/Conky).</p>
<p>wget -q -O &#8211; <a href="http://www.whatismyip.com/automation/n09230945.asp" rel="nofollow">http://www.whatismyip.com/automation/n09230945.asp</a><br />
# basically the automation page<br />
# that someone else mentioned in an earlier comment<br />
# saves bandwidth!</p>
<p>For sometime, there was actually a complaint message posted on WhatIsMyIP.com&#8217;s website &#8230; it linked to the automation page and requested that scripts have a reasonable hit frequency (NOT every two minutes or less &#8230; more like 30 minutes to an hour or more).  I know for example my dynamic IP at home does not change for months and the DDNS script on my router does not try to update my IP on DynDNS all that often either.</p>
<p>People need to think before they code (even pseudocode first) and test the code &#8230; and when networks are involved use tcpdump or Wireshark to verify how much network traffic you are creating!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Jewell</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-780</link>
		<dc:creator>Bob Jewell</dc:creator>
		<pubDate>Tue, 14 Oct 2008 21:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-780</guid>
		<description>Though it&#039;s basically the same thing, I have always used
&#039;curl whatismyip.org&#039;
which defaults to having no extra verbosity while outputting to stdout.</description>
		<content:encoded><![CDATA[<p>Though it&#8217;s basically the same thing, I have always used<br />
&#8216;curl whatismyip.org&#8217;<br />
which defaults to having no extra verbosity while outputting to stdout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-764</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Fri, 05 Sep 2008 23:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-764</guid>
		<description>Because when you are behind firewall/load balancers, you tend to have private IPs.  Most businesses with multiple servers will have it setup that way so they don&#039;t have to buy/justify big blocks of IPs.</description>
		<content:encoded><![CDATA[<p>Because when you are behind firewall/load balancers, you tend to have private IPs.  Most businesses with multiple servers will have it setup that way so they don&#8217;t have to buy/justify big blocks of IPs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hmmm</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-763</link>
		<dc:creator>hmmm</dc:creator>
		<pubDate>Fri, 05 Sep 2008 21:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-763</guid>
		<description>why wouldn&#039;t you use /sbin/ifconfig eth0</description>
		<content:encoded><![CDATA[<p>why wouldn&#8217;t you use /sbin/ifconfig eth0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-762</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-762</guid>
		<description>Alex:  thanks for your tip.  I have updated the post to reflect your recommendation.</description>
		<content:encoded><![CDATA[<p>Alex:  thanks for your tip.  I have updated the post to reflect your recommendation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-761</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-761</guid>
		<description>Thanks jaredmellentine!  I have updated the post with &quot;org&quot; url.</description>
		<content:encoded><![CDATA[<p>Thanks jaredmellentine!  I have updated the post with &#8220;org&#8221; url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Forrow</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-760</link>
		<dc:creator>Alex Forrow</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-760</guid>
		<description>Thats a very useful url to remember. One small simplification though, you can replace &#039;$SSH_TTY&#039; with &#039;-&#039; to send directly to standard out.</description>
		<content:encoded><![CDATA[<p>Thats a very useful url to remember. One small simplification though, you can replace &#8216;$SSH_TTY&#8217; with &#8216;-&#8217; to send directly to standard out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaredmellentine</title>
		<link>http://crazytoon.com/2008/09/04/linux-how-do-you-find-out-what-your-servers-outgoing-ip-is/comment-page-1/#comment-759</link>
		<dc:creator>jaredmellentine</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=110#comment-759</guid>
		<description>Try wget http://www.whatismyip.org.  It returns just the IP, just like the n09230945.asp example above.  A little easier to remember too... =)</description>
		<content:encoded><![CDATA[<p>Try wget <a href="http://www.whatismyip.org" rel="nofollow">http://www.whatismyip.org</a>.  It returns just the IP, just like the n09230945.asp example above.  A little easier to remember too&#8230; =)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

