---
name: "natpmpc"
section: "1"
platform: "linux"
package: "libnatpmp"
version: "20230423-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/natpmpc"
---

# natpmpc(1)

NAT-PMP library test client and mapping setter.

## NAME

natpmpc - NAT-PMP library test client and mapping setter.

## SYNOPSIS

Display the public IP address:\
 **natpmpc**

Add a port mapping:\
 **natpmpc** -a \<public port\> \<private port\> \<protocol\> \[lifetime\]

## DESCRIPTION

In order to remove a mapping, set it with a lifetime of 0 seconds. To remove all mappings for your machine, use 0 as private port and         lifetime.
