<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Libre Things &#187; wget</title>
	<atom:link href="http://positon.org/tag/wget/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>What is my outgoing IP?</title>
		<link>http://positon.org/what-is-my-outgoing-ip</link>
		<comments>http://positon.org/what-is-my-outgoing-ip#comments</comments>
		<pubDate>Thu, 20 Aug 2009 11:21:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=60</guid>
		<description><![CDATA[To know the IP address you use to go out on the Internet, you can use a site like http://www.whatismyip.com In text mode with no Web browser, it&#8217;s a bit more complicated. You can use the following command: wget --user-agent=&#34;Mozilla/5.0&#34; -O - http://www.whatismyip.com 2&#62;/dev/null &#124; grep -o &#34;Your IP Address Is: [0-9.]*&#34; We have to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>To know the IP address you use to go out on the Internet, you can use a site like <a href="http://www.whatismyip.com" title="http://www.whatismyip.com">http://www.whatismyip.com</a></p>
<p>In text mode with no Web browser, it&#8217;s a bit more complicated. You can use the following command:</p>
<pre>
wget --user-agent=&quot;Mozilla/5.0&quot; -O - http://www.whatismyip.com 2&gt;/dev/null | grep -o &quot;Your IP Address Is: [0-9.]*&quot;
</pre>
<p>We have to simulate a real browser, or the site refuses us.</p>
<p><strong>UPDATE 14/01/2010</strong></p>
<p>To find your external IP address, <a href="http://dev.petitchevalroux.net/linux/connaitre-son-adresse-externe-linux.305.html">an even more elegant way</a>:</p>
<pre>
dig +short myip.opendns.com @resolver1.opendns.com
</pre>
<p><strong>UPDATE 06/05/2010</strong></p>
<p>The best way:</p>
<pre>
curl icanhazip.com
</pre>
<p><a href="http://www.commandlinefu.com/commands/view/2966/return-external-ip" title="http://www.commandlinefu.com/commands/view/2966/return-external-ip">http://www.commandlinefu.com/commands/view/2966/return-external-ip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/what-is-my-outgoing-ip/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
