natpmpc(1)

natpmpc1

Nat-pmp library test client and mapping setter.

Usage

Display the public IP address:

natpmpc

Add a port mapping:

natpmpc -a <public port> <private port> <protocol> [lifetime]

Overview

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.

Releases

Unchanged in 8 releases since Debian 7 (Wheezy).

  1. 7–Arch

From libnatpmp 20230423-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.