Skip to content

Instantly share code, notes, and snippets.

@smolleyes
smolleyes / upnp.js
Last active August 1, 2024 14:28 — 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)