Skip to content

Instantly share code, notes, and snippets.

@smolleyes
smolleyes / upnp.js
Last active March 31, 2024 12:26 — forked from acacio/upnp.js
simple upnp port mapping with nodejs
/* node UPNP port forwarding PoC
This is a simple way to forward ports on NAT routers with UPNP.
This is a not-for-production hack that I found useful when testing apps
on my home network behind ny NAT router.
-satori / edited by smolleyes for freebox v6
usage: (install/clone node-ip from https://github.com/indutny/node-ip)