https://github.com/benoitc/upnp
Erlang UPNP Module
https://github.com/benoitc/upnp
Last synced: 11 months ago
JSON representation
Erlang UPNP Module
- Host: GitHub
- URL: https://github.com/benoitc/upnp
- Owner: benoitc
- Created: 2012-11-18T09:21:39.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-16T08:44:21.000Z (over 12 years ago)
- Last Synced: 2025-04-09T10:07:22.974Z (11 months ago)
- Language: Erlang
- Size: 284 KB
- Stars: 14
- Watchers: 5
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](http://github.com/jlouis/etorrent_core.git) .
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