title: Get non-local IP Address Java
body: <p>I have a program which requires it to know it's IP Address. However when I use </p>
  
  <pre><code>InetAddress current_addr = addresses.nextElement();
  </code></pre>
  
  <p>It returns     </p>
  
  <pre><code>127.0.1.1
  </code></pre>
  
  <p>Which isn't very helpful. How can I get my non-local IP Address from java?</p>