extendedip 1.0.1 copy "extendedip: ^1.0.1" to clipboard
extendedip: ^1.0.1 copied to clipboard

Extended functionality for an InternetAddress.

example/extendedip_example.dart

import 'package:extendedip/extendedip.dart';

void main() {
  // Check if an IP is in a private network.
  print(InternetAddress('192.168.24.64').isInPrivate); // true
  print(InternetAddress('1.2.3.4').isInPrivate); // false

  // Convert an IPv4 to an IPv6.
  print(InternetAddress('1.2.3.4').toIPv6().address); // ::FFFF:1.2.3.4
}
1
likes
150
pub points
6%
popularity

Publisher

unverified uploader

Extended functionality for an InternetAddress.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on extendedip