Possible Duplicate:
How to get ip address of the device?
Is it possible or not using some program? it is my code
TextView ip_address = (TextView) findViewById(R.id.tv1);
WifiManager wifimanager= (WifiManager) getSystemService(WIFI_SERVICE);
List<String> lsit = wifimanager.getConfiguredNetworks();
WifiConfiguration wc = (String)lsit.get(0);
ip_address.setText("\n"+ Formatter.formatIpAddress(wifimanager.getConnectionInfo().getIpAddress()));