title: java InetAddress.getLocalHost(); returns 127.0.0.1 ... how to get REAL IP?
body: <p>I'm writing a simple networking app. I need to know the real IP of my machine on the network, like 192.168.1.3 . getLocalHost returns 127.0.0.1 (on Linux, I don't know if it is the same on windows). How to do it?</p>