<?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>Playing on the frontier &#187; localhost</title>
	<atom:link href="http://siphon9.net/loune/tag/localhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://siphon9.net/loune</link>
	<description></description>
	<lastBuildDate>Wed, 18 May 2011 12:10:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quick tip: Why is my service binding to ipv6 localhost instead of ipv4?</title>
		<link>http://siphon9.net/loune/2009/12/quick-tip-why-is-my-service-binding-to-ipv6-localhost-instead-of-ipv4/</link>
		<comments>http://siphon9.net/loune/2009/12/quick-tip-why-is-my-service-binding-to-ipv6-localhost-instead-of-ipv4/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:40:34 +0000</pubDate>
		<dc:creator>Loune</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://siphon9.net/loune/?p=114</guid>
		<description><![CDATA[So you just got a brand new VPS and installed a service, say PostgreSQL onto it. You then run your web application and found it complaining that it can&#8217;t connect to 127.0.0.1 on port 5432. Since you&#8217;re a seasoned administrator, you verify it by doing netstat -an. To your surprise, you find postgresql is binding [...]]]></description>
			<content:encoded><![CDATA[<p>So you just got a brand new VPS and installed a service, say PostgreSQL onto it. You then run your web application and found it complaining that it can&#8217;t connect to 127.0.0.1 on port 5432. Since you&#8217;re a seasoned administrator, you verify it by doing netstat -an. To your surprise, you find postgresql is binding to ::1:5432, the ipv6 localhost address. You curse the VPS provider for enabling and giving you an ipv6 network interface. You don&#8217;t even need ipv6 until 2050! But all is not lost. The reason why postgresql is binding to ::1:5432 is because it binds to localhost, which points to both ::1 (ipv6) and 127.0.0.1 (ipv4). The solution is simple. Open up /etc/hosts and find a line that says</p>
<pre class="brush: plain; title: ; notranslate">::1             localhost</pre>
<p>and comment it out. Restart postgresql or any other service and enjoy dotted-quad goodness again.</p>
]]></content:encoded>
			<wfw:commentRss>http://siphon9.net/loune/2009/12/quick-tip-why-is-my-service-binding-to-ipv6-localhost-instead-of-ipv4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

