title: InetAddress.getLocalHost().getHostAddress() returning unwanted address Java
body: <p>I tried <code>InetAddress.getLocalHost().getHostAddress()</code> to get the users internet address. It's giving me <code>127.0.1.1</code> but i'm looking for something more like <code>192.168.1.75</code>. Any idea how to get the address i'm looking for? Thanks - Tyler</p>
  
  <p>EDIT:
  I have ubuntu. Remember that. I exported my program to a jar and ran it on my moms Windows laptop. It game me the correct address. That is <code>192.168.1.64</code>. Still not the correct one on mine.</p>