Using java Syntax Highlighting
- String myIP = java.net.InetAddress.getLocalHost().getHostAddress();
Parsed in 0.036 seconds, using GeSHi 1.0.8.4
return my System local IP as 192.168.1.18
it's working in java - static method
but... Like that i coundn't get in Android application. It return as
127.0.0.1
I hv add permission for internet in AndroidManifest.xml file too... but still ?????
Using xml Syntax Highlighting
- <uses-permission android:name="android.permission.INTERNET" />
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
I have tried
- InetAddress.getLocalHost();
- NetworkInterface
- Socket {Some prog too}
- ???
Note : i'm working in Windows(Vista SP1) OS
Could any one find ans for this....?


