https://github.com/fischerscode/dart-extendedip
Extended functionality for an InternetAddress.
https://github.com/fischerscode/dart-extendedip
Last synced: 3 months ago
JSON representation
Extended functionality for an InternetAddress.
- Host: GitHub
- URL: https://github.com/fischerscode/dart-extendedip
- Owner: fischerscode
- License: mit
- Created: 2021-10-06T23:31:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T04:39:16.000Z (over 2 years ago)
- Last Synced: 2024-11-16T04:39:44.976Z (over 1 year ago)
- Language: Dart
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Extended functionality for an InternetAddress.
## Usage
A simple usage 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
}
```
## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/fischerscode/dart-extendedIP/issues