<?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: Howto Check you external IP Address from the command line</title>
	<atom:link href="http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jo</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-111880</link>
		<dc:creator>Jo</dc:creator>
		<pubDate>Tue, 25 Oct 2011 06:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-111880</guid>
		<description>Thanks for this!!! great site </description>
		<content:encoded><![CDATA[<p>Thanks for this!!! great site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ?</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-74210</link>
		<dc:creator>?</dc:creator>
		<pubDate>Mon, 13 Dec 2010 03:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-74210</guid>
		<description>ifconfig doesn&#039;t give your external address.
The site has also implemented a new page specifically for scripts (and the method shown here no longer works), with the request that you not query it more than once every 5 minutes. The script can be made much simpler:

#!/bin/bash
wget http://www.whatismyip.com/automation/n09230945.asp -O - -o /dev/null
echo</description>
		<content:encoded><![CDATA[<p>ifconfig doesn&#8217;t give your external address.<br />
The site has also implemented a new page specifically for scripts (and the method shown here no longer works), with the request that you not query it more than once every 5 minutes. The script can be made much simpler:</p>
<p>#!/bin/bash<br />
wget <a href="http://www.whatismyip.com/automation/n09230945.asp" rel="nofollow">http://www.whatismyip.com/automation/n09230945.asp</a> -O - -o /dev/null<br />
echo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jksadf</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-53666</link>
		<dc:creator>jksadf</dc:creator>
		<pubDate>Sun, 17 Oct 2010 15:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-53666</guid>
		<description>You can use ifconfig; IP address is under &quot;inet addr&quot;.</description>
		<content:encoded><![CDATA[<p>You can use ifconfig; IP address is under &#8220;inet addr&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DosDawg</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-17759</link>
		<dc:creator>DosDawg</dc:creator>
		<pubDate>Tue, 01 Dec 2009 06:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-17759</guid>
		<description>well, without using whatismyip.org you can put this in your shell script;

dig yourdomain.com

call the shell script 
./digmyip.sh or whatever you want to name it

at any rate as for the logs and outages and all of that, didnt have the time to get that one figured out, but that would be port monitoring on cron jobs checking periodically to see if common ports are open and accessible. but you can create a log file on your local machine and have it email you when port 80, port 21 port 22 port 3306 go down and add any other ports you want monitored.</description>
		<content:encoded><![CDATA[<p>well, without using whatismyip.org you can put this in your shell script;</p>
<p>dig yourdomain.com</p>
<p>call the shell script<br />
./digmyip.sh or whatever you want to name it</p>
<p>at any rate as for the logs and outages and all of that, didnt have the time to get that one figured out, but that would be port monitoring on cron jobs checking periodically to see if common ports are open and accessible. but you can create a log file on your local machine and have it email you when port 80, port 21 port 22 port 3306 go down and add any other ports you want monitored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-10166</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Sat, 20 Jun 2009 03:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-10166</guid>
		<description>whatismyip.com does not allow scripts to their main site. I don&#039;t have the address with me right now, but they want you to use a different page, that only spits out the IP. Less bandwidth for them, I suppose. I discovered this with a perl script, but do a wget and there will be a line in the output with the correct address. 

But there is still a fallacy in the assumption that you can find your external IP that way. What if you can&#039;t reach &quot;whatismyip.com&quot;?

I would like to know how I can find my external IP without having to reach a remote host on the internet. Say I have a DNS problem and I can&#039;t get to any host. Also I&#039;d like to script this so that I can keep track of down times with Charter Cable and have a detailed logs of outages. I have tons of trouble with them because they think that everyone is asleep at 3 a.m. and then disconnect the internet. Grrrrr. Gets me furious. Cable Companies SUCK. Wish there could be a non-profit co-op ISP.</description>
		<content:encoded><![CDATA[<p>whatismyip.com does not allow scripts to their main site. I don&#8217;t have the address with me right now, but they want you to use a different page, that only spits out the IP. Less bandwidth for them, I suppose. I discovered this with a perl script, but do a wget and there will be a line in the output with the correct address. </p>
<p>But there is still a fallacy in the assumption that you can find your external IP that way. What if you can&#8217;t reach &#8220;whatismyip.com&#8221;?</p>
<p>I would like to know how I can find my external IP without having to reach a remote host on the internet. Say I have a DNS problem and I can&#8217;t get to any host. Also I&#8217;d like to script this so that I can keep track of down times with Charter Cable and have a detailed logs of outages. I have tons of trouble with them because they think that everyone is asleep at 3 a.m. and then disconnect the internet. Grrrrr. Gets me furious. Cable Companies SUCK. Wish there could be a non-profit co-op ISP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tadeu</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-5622</link>
		<dc:creator>Tadeu</dc:creator>
		<pubDate>Sat, 24 Jan 2009 13:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-5622</guid>
		<description>Not sure if &lt;code&gt;curl&lt;/code&gt; is installed by default on Ubuntu (I don&#039;t use it), but another way to do that would be

&lt;code&gt;curl http://www.whatismyip.org&lt;/code&gt;

with a &lt;code&gt;&amp;&amp; echo&lt;code&gt; at the and to jump a line, if necessary.</description>
		<content:encoded><![CDATA[<p>Not sure if <code>curl</code> is installed by default on Ubuntu (I don&#8217;t use it), but another way to do that would be</p>
<p><code>curl <a href="http://www.whatismyip.org" rel="nofollow">http://www.whatismyip.org</a></code></p>
<p>with a <code>&amp;&amp; echo</code><code> at the and to jump a line, if necessary.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-5474</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 16 Jan 2009 20:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-5474</guid>
		<description>great tip, you can use slurpware.org, only spits out IP nothing else, so easy to read.</description>
		<content:encoded><![CDATA[<p>great tip, you can use slurpware.org, only spits out IP nothing else, so easy to read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benamara</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-2284</link>
		<dc:creator>benamara</dc:creator>
		<pubDate>Tue, 25 Nov 2008 15:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-2284</guid>
		<description>voila mon commentaire</description>
		<content:encoded><![CDATA[<p>voila mon commentaire</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daaawg</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-2283</link>
		<dc:creator>daaawg</dc:creator>
		<pubDate>Fri, 10 Oct 2008 17:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-2283</guid>
		<description>Try either of these in a script or terminal:

&lt;code&gt;wget -qO - http://cfaj.freeshell.org/ipaddr.cgi&lt;/code&gt;
    or
&lt;code&gt;lynx -dump http://whatismyip.org/&lt;/code&gt;

Of course these will only work if you have wget or lynx installed on your system. Be aware that as written, the wget command returns a string without a newline character, so deal with that quirk accordingly. Can anybody correct that to return a newline?</description>
		<content:encoded><![CDATA[<p>Try either of these in a script or terminal:</p>
<p><code>wget -qO - <a href="http://cfaj.freeshell.org/ipaddr.cgi" rel="nofollow">http://cfaj.freeshell.org/ipaddr.cgi</a></code><br />
    or<br />
<code>lynx -dump <a href="http://whatismyip.org/" rel="nofollow">http://whatismyip.org/</a></code></p>
<p>Of course these will only work if you have wget or lynx installed on your system. Be aware that as written, the wget command returns a string without a newline character, so deal with that quirk accordingly. Can anybody correct that to return a newline?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moonsoup</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-2282</link>
		<dc:creator>moonsoup</dc:creator>
		<pubDate>Thu, 25 Sep 2008 16:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-2282</guid>
		<description>try

lynx -dump http://whatismyip.com &#124; awk &#039;/Your/{print $5}&#039;

that seems to work on my system.</description>
		<content:encoded><![CDATA[<p>try</p>
<p>lynx -dump <a href="http://whatismyip.com" rel="nofollow">http://whatismyip.com</a> | awk &#8216;/Your/{print $5}&#8217;</p>
<p>that seems to work on my system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blog.sudosu.net</title>
		<link>http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html/comment-page-1#comment-2281</link>
		<dc:creator>blog.sudosu.net</dc:creator>
		<pubDate>Sat, 08 Dec 2007 19:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-check-you-external-ip-address-from-the-command-line.html#comment-2281</guid>
		<description>&lt;strong&gt;Correction to Ubuntu Geek&#8217;s &#8220;How To Check Your External IP Address From The Command Line&#8221;...&lt;/strong&gt;

I follow the Ubuntu Geek blog, and have found some very useful tips there. However, there&#8217;s a problem with their latest tip, &#8220;Howto Check you (sic) external IP Address from the command line.&#8221;
Some background: There&#8217;s a very usef...</description>
		<content:encoded><![CDATA[<p><strong>Correction to Ubuntu Geek&#8217;s &#8220;How To Check Your External IP Address From The Command Line&#8221;&#8230;</strong></p>
<p>I follow the Ubuntu Geek blog, and have found some very useful tips there. However, there&#8217;s a problem with their latest tip, &#8220;Howto Check you (sic) external IP Address from the command line.&#8221;<br />
Some background: There&#8217;s a very usef&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

