I'm executing this code on my G1 (not emulator) to find out my own IP adress. But it always gives me back 127.0.0.1. How can I find out my real IP without querying an internet host like www.google.com (My application needs to work in an local LAN without Internet connection).
Using java Syntax Highlighting
- Toast.makeText(this, "Local adress is " + InetAddress.getLocalHost().getHostAddress(), Toast.LENGTH_LONG).show();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Thanks for your help, cheers


