<?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>game, game. repeat. &#187; ipconfig</title>
	<atom:link href="http://ggr.com/tag/ipconfig/feed" rel="self" type="application/rss+xml" />
	<link>http://ggr.com</link>
	<description>if Scott Bonds had a home on the interwebs, this would be it</description>
	<lastBuildDate>Tue, 09 Feb 2010 00:59:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How To Get Your IP and ONLY Your IP in Windows</title>
		<link>http://ggr.com/how-to-get-your-ip-and-only-your-ip-in-windows.html</link>
		<comments>http://ggr.com/how-to-get-your-ip-and-only-your-ip-in-windows.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 19:30:52 +0000</pubDate>
		<dc:creator>Scott Bonds</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ipconfig]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://ggr.com/?p=426</guid>
		<description><![CDATA[Sometimes you need to know your Windows machine&#8217;s IP. For example, if you would like to update your dynamic DNS entry from a script file. Here&#8217;s a hack that gets the job done. This is from someone good with windows scripts, updated with some extra &#8216;shifts&#8217; to get it to work under XP. Check out [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ggr.com/how-to-get-your-ip-and-only-your-ip-in-windows.html"><img class="alignnone size-full wp-image-436" title="getIP.bat screenshot" src="http://ggr.com/wp-content/uploads/getIP.bat-screenshot1.jpg" alt="getIP.bat screenshot" width="580" height="287" /></a></p>
<p>Sometimes you need to know your Windows machine&#8217;s IP.  For example, if you would like to <a href="http://ggr.com/how-to-post-your-dynamic-internal-ip-to-dyndns-from-your-windows-machine.html">update your dynamic DNS entry from a script</a> file. Here&#8217;s a hack that gets the job done.</p>
<p><span id="more-426"></span></p>
<p>This is from <a href="http://www.ericphelps.com/batch/samples/ip.txt">someone good with windows scripts</a>, updated with some extra &#8216;shifts&#8217; to get it to work under XP.  Check out the link for an explanation.  Save this in a batch file, I call mine &#8216;GetIP.bat&#8217;:</p>
<p><code> :: Script from: http://www.ericphelps.com/batch/samples/ip.txt<br />
@echo off<br />
cd %temp%<br />
:: Make a line fragment "temp.txt"<br />
echo e 100 "call temp2.bat "&gt; script<br />
echo rcx&gt;&gt; script<br />
echo f&gt;&gt; script<br />
echo n temp.txt&gt;&gt; script<br />
echo w&gt;&gt; script<br />
echo q&gt;&gt;script<br />
debug &lt; script &gt; junk<br />
del script<br />
:: Make the working file "temp2.bat"<br />
echo shift&gt; temp2.bat<br />
echo shift&gt;&gt; temp2.bat<br />
echo shift&gt;&gt; temp2.bat<br />
echo shift&gt;&gt; temp2.bat<br />
echo shift&gt;&gt; temp2.bat<br />
echo shift&gt;&gt; temp2.bat<br />
echo set IP=%%9&gt;&gt; temp2.bat<br />
:: Run the command that finds the IP and create "temp1.bat"<br />
copy temp.txt temp1.bat &gt; junk<br />
ipconfig.exe | find "IP Address" | find /v " 0.0.0.0" &gt;&gt; temp1.bat<br />
:: Run the temp1.bat, which runs temp2.bat, which sets the IP variable<br />
call temp1.bat<br />
:: Remove temporary files<br />
del temp1.bat<br />
del temp2.bat<br />
del temp.txt<br />
del junk<br />
:: Display the result<br />
echo Your IP is %IP%<br />
pause<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ggr.com/how-to-get-your-ip-and-only-your-ip-in-windows.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
