upnp_port_forward 1.0.6
upnp_port_forward: ^1.0.6 copied to clipboard
upnp port forward daemon
upnp_port_forward #
upnp port forward daemon
use #
import 'package:upnp_port_forward/init.dart' show UpnpPortForwardDaemon;
import 'dart:io';
void main() async {
final udp = await RawDatagramSocket.bind(InternetAddress.anyIPv4, 0);
final port = udp.port;
UpnpPortForwardDaemon('rmw.link', (protocol, port, state) {
print("upnp port mapped : $protocol $port $state");
})
..udp(port)
..run();
print("try map port $port");
}