Answers for "how to find wifi ip address on android studio"

1

android studio get wifi ip address

WifiManager wifiMgr = (WifiManager) getSystemService(WIFI_SERVICE);
WifiInfo wifiInfo = wifiMgr.getConnectionInfo();
int ip = wifiInfo.getIpAddress();
String ipAddress = Formatter.formatIpAddress(ip);


<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Posted by: Guest on August-20-2020

Code answers related to "how to find wifi ip address on android studio"

Browse Popular Code Answers by Language