ip_to_int 1.0.2 copy "ip_to_int: ^1.0.2" to clipboard
ip_to_int: ^1.0.2 copied to clipboard

This package can be used to convert IP address to integer and revert it !

example/lib/main.dart

import 'package:ip_to_int/ip_to_int.dart';

void main() {
  String ipAddress = "127.0.0.1";

  int integerIpAddress = IpInt(ipAddress).toInt();
  print(integerIpAddress);
  String convertInteger = IpInt(integerIpAddress.toString()).toString();
  print(convertInteger);
}
2
likes
40
points
26
downloads

Publisher

verified publishermartient.ovh

Weekly Downloads

This package can be used to convert IP address to integer and revert it !

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ip_to_int