23 releases (breaking)

Uses new Rust 2024

0.18.0 May 26, 2026
0.16.0 Apr 16, 2026
0.15.0 Mar 10, 2026
0.12.0 Nov 3, 2025
0.1.0 Nov 4, 2024

#3 in Network programming

Download history 2876/week @ 2026-03-03 19192/week @ 2026-03-10 17058/week @ 2026-03-17 17787/week @ 2026-03-24 17037/week @ 2026-03-31 19844/week @ 2026-04-07 20194/week @ 2026-04-14 25767/week @ 2026-04-21 35062/week @ 2026-04-28 33405/week @ 2026-05-05 31622/week @ 2026-05-12 34358/week @ 2026-05-19 44380/week @ 2026-05-26 35671/week @ 2026-06-02

150,770 downloads per month
Used in 273 crates (8 directly)

MIT/Apache

110KB
2K SLoC

Portmapper

portmapper is a library to ensure a mapping for a local port is maintained despite network changes. Provides upnp, pcp and nat-pmp protocols support.

Used in iroh, created with love by the n0 team.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~15–41MB
~615K SLoC