getDeviceIpAddress static method

Future<String?> getDeviceIpAddress()

Get the device's current IP address (for debugging) - returns first valid IP

Implementation

static Future<String?> getDeviceIpAddress() async {
  final addresses = await getDeviceIpAddresses();
  return addresses.isNotEmpty ? addresses.first : null;
}