<?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>Trucs Libres &#187; wget</title>
	<atom:link href="http://fr.positon.org/tag/wget/feed" rel="self" type="application/rss+xml" />
	<link>http://fr.positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>fr-FR</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Avec quelle adresse IP je sors ?</title>
		<link>http://fr.positon.org/avec-quelle-adresse-ip-je-sors</link>
		<comments>http://fr.positon.org/avec-quelle-adresse-ip-je-sors#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[Pour savoir avec quelle adresse IP on sort sur Internet, on peux aller voir un site du genre http://www.whatismyip.com En mode texte sans navigateur Web, c&#8217;est un peu plus compliqué. On pourra donc utiliser la commande suivante : 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; Il faut se [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Pour savoir avec quelle adresse IP on sort sur Internet, on peux aller voir un site du genre <a href="http://www.whatismyip.com" title="http://www.whatismyip.com">http://www.whatismyip.com</a></p>
<p>En mode texte sans navigateur Web, c&#8217;est un peu plus compliqué. On pourra donc utiliser la commande suivante :</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>Il faut se faire passer pour un vrai navigateur sinon le site nous refuse.</p>
<p><strong>MAJ 14/01/2010</strong></p>
<p>Pour trouver son adresse IP externe, <a href="http://dev.petitchevalroux.net/linux/connaitre-son-adresse-externe-linux.305.html">une méthode encore plus élégante</a> :</p>
<pre>
dig +short myip.opendns.com @resolver1.opendns.com
</pre>
<p><strong>MAJ 19/03/2010</strong></p>
<p>D&#8217;ailleurs ça marche même plus ma méthode. Préférez donc :</p>
<p><a href="http://dev.petitchevalroux.net/linux/connaitre-son-adresse-externe-linux.305.html" title="http://dev.petitchevalroux.net/linux/connaitre-son-adresse-externe-linux.305.html">http://dev.petitchevalroux.net/linux/connaitre-son-adresse-externe-linux.305.html</a></p>
<p><strong>MAJ 06/05/2010</strong></p>
<p>Ou encore mieux !</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://fr.positon.org/avec-quelle-adresse-ip-je-sors/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
