current method
Returns the current IpAddress detected by Config.ipEndpoint.
Implementation
Future<IpAddress> current() async {
  final Dio dio = await _dio;
  final Response response = await dio.get(Config.ipEndpoint);
  if (response.statusCode != 200) {
    throw Exception(
      'Failed to fetch current IP. Status code: ${response.statusCode}. Data: ${response.data}',
    );
  }
  return IpAddress(response.data['ip']);
}