<?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: how do i find my router&#8217;s external ip address?</title>
	<atom:link href="http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/feed/" rel="self" type="application/rss+xml" />
	<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 05:54:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: david carlton</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4604</link>
		<dc:creator>david carlton</dc:creator>
		<pubDate>Fri, 12 May 2006 05:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4604</guid>
		<description>As Per pointed out, ssh also knows the answer: &lt;code&gt;ssh HOSTNAME &#039;echo $SSH_CLIENT&#039;&lt;/code&gt; does the trick.</description>
		<content:encoded><![CDATA[<p>As Per pointed out, ssh also knows the answer: <code>ssh HOSTNAME 'echo $SSH_CLIENT'</code> does the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david carlton</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4589</link>
		<dc:creator>david carlton</dc:creator>
		<pubDate>Wed, 03 May 2006 00:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4589</guid>
		<description>Thanks, I&#039;d read about dyndns in my router&#039;s documentation but hadn&#039;t realized it was free.  Hmm; maybe I will give that a try.

In the meantime, your scripts do exactly what I want.  I&#039;ve taken your idea of using http and modified it somewhere: I&#039;m instead looking up a nonexistent web page on the remote host where I&#039;m storing my IP address (to avoid relying on two different hosts), and grepping through the Apache log to find where I connected from.  Works like a charm.</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;d read about dyndns in my router&#8217;s documentation but hadn&#8217;t realized it was free.  Hmm; maybe I will give that a try.</p>
<p>In the meantime, your scripts do exactly what I want.  I&#8217;ve taken your idea of using http and modified it somewhere: I&#8217;m instead looking up a nonexistent web page on the remote host where I&#8217;m storing my IP address (to avoid relying on two different hosts), and grepping through the Apache log to find where I connected from.  Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4584</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Tue, 02 May 2006 12:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4584</guid>
		<description>Just curious to know if that was helpful at all? :-)</description>
		<content:encoded><![CDATA[<p>Just curious to know if that was helpful at all? :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4537</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Mon, 01 May 2006 09:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4537</guid>
		<description>I also wanted to tell you about the free DNS service provided by http://www.dyndns.com. Once you have registered a free account with them, you have an option to create an entry for your host with a good number of options of firstlevel domain names like dyndns.org, homelinux.net, etc. Once you have created the host entry, you could use the following script to update the records from your cron or whatever.

&lt;code&gt;#!/bin/bash
# Set the username and password for the dyndns account
USERNAME=
PASSWORD=
# Set the system being used to either static or dynamic DNS
SYSTEM=dyndns
# Set the hostname for the record to change
DYNHOST=
# Set whether to wildcard the DNS entry, i.e. *.$DYNHOST
WILDCARD=OFF
############################################
## DO NOT EDIT ANYTHING BEYOND THIS POINT ##
############################################
if [ -z &quot;$DYNDNS&quot; ]; then
	DYNDNS=&quot;$DYNHOST&quot;
fi
if [ -z &quot;$DNSWILD&quot;]; then
	DNSWILD=&quot;$WILDCARD&quot;
fi
LOOKUP=`host $DYNHOST &#124; cut -f3`
MYIP=`curl -s http://checkip.dyndns.org &#124; awk &#039;{print $6}&#039; &#124; awk &#039; BEGIN { FS = &quot;&lt;&quot; } { print $1 } &#039;`
# Do the work
if [ &quot;$LOOKUP&quot; = &quot;$MYIP&quot; ]; then
	echo &quot;No change in DNS entry.&quot;
else
	echo `lynx -auth=${USERNAME}:${PASSWORD} -source &quot;http://members.dyndns.org:8245/nic/update?system=${SYSTEM}&amp;hostname=${DYNDNS}&amp;myip=${MYIP}&amp;wildcard=${DNSWILD}&quot;`
fi&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I also wanted to tell you about the free DNS service provided by <a href="http://www.dyndns.com" rel="nofollow">http://www.dyndns.com</a>. Once you have registered a free account with them, you have an option to create an entry for your host with a good number of options of firstlevel domain names like dyndns.org, homelinux.net, etc. Once you have created the host entry, you could use the following script to update the records from your cron or whatever.</p>
<p><code>#!/bin/bash<br />
# Set the username and password for the dyndns account<br />
USERNAME=<br />
PASSWORD=<br />
# Set the system being used to either static or dynamic DNS<br />
SYSTEM=dyndns<br />
# Set the hostname for the record to change<br />
DYNHOST=<br />
# Set whether to wildcard the DNS entry, i.e. *.$DYNHOST<br />
WILDCARD=OFF<br />
############################################<br />
## DO NOT EDIT ANYTHING BEYOND THIS POINT ##<br />
############################################<br />
if [ -z "$DYNDNS" ]; then<br />
	DYNDNS="$DYNHOST"<br />
fi<br />
if [ -z "$DNSWILD"]; then<br />
	DNSWILD="$WILDCARD"<br />
fi<br />
LOOKUP=`host $DYNHOST | cut -f3`<br />
MYIP=`curl -s <a href="http://checkip.dyndns.org" rel="nofollow">http://checkip.dyndns.org</a> | awk '{print $6}' | awk ' BEGIN { FS = "&lt;" } { print $1 } '`<br />
# Do the work<br />
if [ "$LOOKUP" = "$MYIP" ]; then<br />
	echo "No change in DNS entry."<br />
else<br />
	echo `lynx -auth=${USERNAME}:${PASSWORD} -source "http://members.dyndns.org:8245/nic/update?system=${SYSTEM}&amp;hostname=${DYNDNS}&amp;myip=${MYIP}&amp;wildcard=${DNSWILD}"`<br />
fi</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4536</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Mon, 01 May 2006 09:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4536</guid>
		<description>Alternatively there is another site that provides text output to avoid all the &#039;awk&#039;ing business. But I felt that dyndns is more reliable than other guys. 

&lt;code&gt;#!/bin/bash
curl &quot;http://www.networksecuritytoolkit.org/nst/cgi-bin/ip.cgi&quot;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Alternatively there is another site that provides text output to avoid all the &#8216;awk&#8217;ing business. But I felt that dyndns is more reliable than other guys. </p>
<p><code>#!/bin/bash<br />
curl "http://www.networksecuritytoolkit.org/nst/cgi-bin/ip.cgi"<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/comment-page-1/#comment-4535</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Mon, 01 May 2006 08:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/archives/2006/04/how-do-i-find-my-routers-external-ip-address/#comment-4535</guid>
		<description>David, may be the shell script that I use can help you.

&lt;code&gt;#!/bin/bash
curl -s http://checkip.dyndns.org &#124; awk &#039;{print $6}&#039; &#124; awk &#039; BEGIN { FS = &quot;&lt;&quot; } { print $1 } &#039;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>David, may be the shell script that I use can help you.</p>
<p><code>#!/bin/bash<br />
curl -s <a href="http://checkip.dyndns.org" rel="nofollow">http://checkip.dyndns.org</a> | awk '{print $6}' | awk ' BEGIN { FS = "&lt;" } { print $1 } '<br />
</code></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 (User agent is rejected)
Database Caching 3/15 queries in 0.008 seconds using disk: basic

Served from: malvasiabianca.org @ 2012-02-11 18:01:46 -->
