[ANN]: node-nat-pmp: A Node.js implementation of the NAT Port Mapping Protocol
521 views
Skip to first unread message
Nathan Rajlich
unread,
Aug 5, 2012, 6:39:49 PM8/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
If you've wanted to forward your ports programmatically before, and have a NAT-PMP compatible route (basically an Apple router), then this module is for you. You can get what the router believes is the external IP address, as well as open and close UDP and TCP ports to the computer sending the commands.
I recently ran into the need to forward a port on my home router without having access to the Airport Utility running at my home. This was the solution, to run a quick node script to open the SSH port for an hour while I did my thing. And no router configuration or rebooting was required, so it served my need perfectly. Hopefully you may enjoy it as well. Cheers!