Skip to content
Erlang UPNP Module
Erlang
Find file
Latest commit 75a526d Aug 16, 2013 @benoitc Update README.md
nat_upnp should be used instead of the upnp module.
Failed to load latest commit information.
src
.gitignore
Makefile
README.md Update README.md Aug 16, 2013
erlang.mk
rebar.config Fix up the correct dependencies. Feb 17, 2013

README.md

This code is in maintenance mode only. It has been superceed by nat_upnp which is easier to use in your Erlang application:

https://github.com/benoitc/nat_upnp

upnp support

Application that provides a way to map a local port to the external using UPnP IGD.

Code extracted from etorrent .

Example of usage:

1> ssl:start().
2> application:start(hackney).
3> application:start(ranch).  
4> application:start(cowboy).
5> lager:start().            
6> application:start(upnp).  
7> upnp:start(test, [{ip, "0.0.0.0"}, {maps, [{"example.com", tcp, 8000}]}]).

This will map the port 8000 on the external IP to your application

Something went wrong with that request. Please try again.