Skip to content
AdminKit

PCP (Port Control Protocol)

What is PCP (Port Control Protocol)?

PCP (Port Control Protocol), defined in RFC 6887, lets a device ask a NAT gateway or firewall to open an inbound port mapping, working across carrier-grade NAT like CGNAT where UPnP alone can't reach. AdminKit's port check tool verifies whether a mapping -- via PCP, UPnP, or manual forwarding -- is actually reachable.

By AdminKit team, Netbase JSC · Updated

Port Control Protocol (PCP), defined in RFC 6887 — also tracked on its IETF Datatracker page — lets a device on a private network explicitly ask a NAT gateway or firewall to create an inbound port mapping, the same goal UPnP’s Internet Gateway Device protocol serves, but designed to also work across a carrier’s NAT, not just a single home router. A PCP request can travel through more than one layer of address translation — relevant on networks using CGNAT or DS-Lite, where, as Cloudflare describes it, the ISP inserts its own carrier-grade NAT step on top of the translation a subscriber’s own home router already does, so a device’s traffic crosses NAT at both the home router and the ISP — and the client receives back the actual external address and port it was granted, rather than having to guess or rely on a separate discovery step. Tailscale’s write-up on how NAT traversal works traces PCP back to Apple’s NAT-PMP, describing NAT-PMP v2 as “reborn as PCP,” and explains that its software looks for UPnP IGD, NAT-PMP and PCP on the local gateway to request a public port mapping. PCP also supports explicitly requesting an IPv6 mapping and lets a device proactively tear down a mapping it no longer needs, instead of leaving an open port forwarding rule behind until a lease silently expires. Support depends on both the local gateway and, for the carrier-NAT case, the ISP’s own equipment implementing PCP; a device or network that doesn’t support it falls back to manual port forwarding or UPnP where available.

AdminKit groups pCP (Port Control Protocol) under its IP & network cluster — browse the AdminKit glossary index for other related terms.

Frequently asked questions

What does PCP let a device do?

Explicitly ask a NAT gateway or firewall to create an inbound port mapping.

How does PCP differ from UPnP?

PCP is designed to also work across a carrier's NAT, such as CGNAT, not just a single home router.

What does a device get back after a successful PCP request?

The actual external address and port it was granted, rather than having to guess or rely on a separate discovery step.

Does PCP support IPv6 and removing mappings?

Yes -- it supports explicitly requesting an IPv6 mapping and lets a device proactively tear down a mapping it no longer needs.