libnatpmp
« Back to VersTracker
Description:
NAT port mapping protocol library
Type: Formula  |  Latest Version: 20230423@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: networking nat library port-forwarding c
Install: brew install libnatpmp
About:
libnatpmp is a lightweight C library that implements the NAT-PMP (NAT Port Mapping Protocol). It enables applications to automatically configure port forwarding on network routers that support this protocol. This allows devices behind NAT to accept incoming connections, which is essential for peer-to-peer networking and server applications.
Key Features:
  • Minimalist C library with no external dependencies
  • Supports both IPv4 and IPv6 address mapping
  • Simple API for adding and removing port mappings
  • Non-blocking, portable design suitable for integration into various applications
Use Cases:
  • Enabling peer-to-peer (P2P) applications to function behind NAT routers
  • Allowing game servers or VoIP clients to accept incoming connections
  • Implementing automatic port forwarding in networked software
Alternatives:
  • libminiupnpc – Implements UPnP instead of NAT-PMP; broader router support but UPnP is often considered less secure and more complex than NAT-PMP.
Version History
Detected Version Rev Change Commit
Dec 24, 2025 2:39pm 20230423 0 VERSION_BUMP d0ae01bd
Sep 16, 2025 8:06am 0 VERSION_BUMP a65d160b
Sep 13, 2024 1:42pm 0 VERSION_BUMP 63c717a0