<?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>The Dumping Ground &#187; ipv4</title>
	<atom:link href="http://ardvaark.net/tag/ipv4/feed" rel="self" type="application/rss+xml" />
	<link>http://ardvaark.net</link>
	<description>And who cares?</description>
	<lastBuildDate>Tue, 15 May 2012 14:57:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Make Java Ignore IPv6</title>
		<link>http://ardvaark.net/how-to-make-java-ignore-ipv6</link>
		<comments>http://ardvaark.net/how-to-make-java-ignore-ipv6#comments</comments>
		<pubDate>Sun, 11 Oct 2009 03:43:53 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ardvaark.net/?p=764</guid>
		<description><![CDATA[Sure, IPv6 is going to save us all from the apocalypse, defeat communism, cure the swine flu, and bake you the most delicious brownies you’ve ever tasted.  Someday.  But in the meantime, for real people trying to do real work, it’s a fucking nuisance. As more systems have started shipping with the technology, little compatibility [...]]]></description>
			<content:encoded><![CDATA[<p>Sure, IPv6 is going to save us all from the apocalypse, defeat communism, cure the swine flu, and bake you the most delicious brownies you’ve ever tasted.  Someday.  But in the meantime, for real people trying to do real work, it’s a fucking nuisance.</p>
<p>As more systems have started shipping with the technology, little compatibility issues continue to crop up.  One of the more recurrent problems I’ve encountered is incompatibilities between Java and IPv6 on Linux – specifically Ubuntu.  Up until recently, it was quite easy to eliminate the problem by merely blacklisting the appropriate kernel modules, thusly:</p>
<p>
<p class="code"># echo 'blacklist net-pf-10' &gt;&gt; /etc/modprobe.d/blacklist.conf
# echo 'blacklist ipv6' &gt;&gt; /etc/modprobe.d/blacklist.conf
</p>
<p>However, as of Ubuntu 9.04 (Jaunty), IPv6 support is no longer a module – it’s hard-compiled into the shipping kernels.  No big deal, though, because there’s a system control variable that allows you to remove IPv6 support from the kernel.</p>
<p>
<p class="code"># echo 1 &gt; /proc/sys/net/ipv6/conf/all/disable_ipv6</p>
</p>
<p>Except that doesn’t work.  It seems there was a kernel bug where that setting was just plain broken.  And it hasn’t been shipped with the normal Ubuntu kernels yet.  So, what is one to do, short of re-compiling their own kernel?</p>
<p>Here is a copy-paste from an IM exchange I had with Java earlier:</p>
<blockquote><p>
# Java has entered the chat.</p>
<p>Java: Hey dude, what&#8217;s up?</p>
<p>Ardvaark: hey, i&#8217;m having a problem getting you to listen to an ipv4 socket when ipv6 is installed on my ubuntu box</p>
<p>Java: Yeah! I totally support IPv6 now! You didn&#8217;t even have to do anything because I abstract you from the OS details!  Isn&#8217;t that great?!</p>
<p>Ardvaark: awesome, i guess, except that it doesn&#8217;t work.</p>
<p>Ardvaark: i really need you to just listen on ipv4, because the tivo just doesn&#8217;t like <a href="http://galleon.sourceforge.net/">galleon</a> on ipv6</p>
<p>Ardvaark: so sit the hell down, shut the hell up, and use ipv4</p>
<p>Ardvaark: pretty please</p>
<p>Java: Okay, geez, no need to get all pissy about it.</p>
<p>Ardvaark: and while you&#8217;re at it, could  you please stop using like half a gig RAM just for a silly hello world program?</p>
<p>Java: Don&#8217;t push your luck.</p>
<p># Java has left the chat.
</p></blockquote>
<p>And now that we’re back in reality, the magic word is <span class="code">-Djava.net.preferIPv4Stack=true.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ardvaark.net/how-to-make-java-ignore-ipv6/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

