0 purchases
upnp port forward
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");
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.