title: InetAddress.getHostAddress() ipv6 compliant?
body: <p>Is  <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/net/InetAddress.html#getHostAddress%28%29" rel="noreferrer">InetAddress.getHostAddress()</a> ipv6 compliant in JDK 1.6?</p>
  
  <p>Specifically I am doing</p>
  
  <pre><code>InetAddress.getLocalHost().getHostAddress()
  </code></pre>
  
  <p>Is it ipv6 compliant? Does it work for both ipv4 and v6 addresses?</p>