UPNP for node.js.
const UPNP = ;
// Set a timeoutUPNPRESPONSE_TIMEOUT = 1000// Discovering internet gateway (upnp)let wan = await UPNP// Find external IP (upnp)let host = await wan// Add port mapping (remoteHost, externalPort, internalPort)await wan// Remove port mappingawait wan
Contribution and License Agreement
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work.
- Copyright (c) 2017, Christopher Jeffrey (MIT License).
See LICENSE for more info.