stun_dart 0.1.0+1-dev stun_dart: ^0.1.0+1-dev copied to clipboard
Simple plug and play stun client for dart. This will let you know your current public IP, port and NAT type details.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add stun_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
stun_dart: ^0.1.0+1-dev
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:stun_dart/isolated_stun.dart';
import 'package:stun_dart/public_STUN.dart';
import 'package:stun_dart/stun.dart';