| | |
| | | // WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE); |
| | | // String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress()); |
| | | String ip = NetUtil.getIPAddress(true); |
| | | Constants.erlangLocalNode = DeviceManager.getDeviceId() + "@" + ip; |
| | | Constants.deviceId = DeviceManager.getDeviceId(); |
| | | // System.out.println("erlangLocalNode="+Constants.erlangLocalNode); |
| | | // if (ContextCompat.checkSelfPermission(getApplicationContext(), android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) { |