I\'m writing an Android video game that supports multiplayer. There is a dedicated server running which the androids connect to when the multiplayer button is clicked by ope
try this
WifiManager wim= (WifiManager) getSystemService(WIFI_SERVICE) ; List l= wim.getConfiguredNetworks(); WifiConfiguration wc=l.get(0); textview.append( "\n"+ Formatter.formatIpAddress(wim.getConnectionInfo().getIpAddress()));