This guide owns one decision: whether UPnP stays on, and what to do instead if it goes off. How NAT types work and how to fix a strict NAT are in our NAT types guide, and where each brand keeps the UPnP switch is in router security settings by brand. RouterHaus hasn't tested these settings; everything below comes from the sources' own pages, read on December 3, 2026.
What UPnP actually does on a router
UPnP lets a device inside your home ask the router to open a port from the internet to itself, with no password and no prompt to you. Reolink says it lets the router "do automatic port mapping" source 21, and TP-Link says it lets devices "automatically open ports" without manual configuration. source 24 Unlike a manual forward, GL.iNet notes, a mapping exists only because a device asked, and is "removed when the client releases them or their leases expire." source 26
Three protocols do this job, and a router setting labeled UPnP may cover one or more of them:
- UPnP IGD (Internet Gateway Device). What most routers mean by "UPnP," a specification maintained by the Open Connectivity Foundation (OCF), not the IETF. A CISA alert in 2020 asked vendors and ISPs to adopt the OCF's updated specifications. source 5
- NAT-PMP. Apple's protocol, written up as RFC 6886 by two Apple authors; it shipped in Mac OS X and AirPort base stations. Mappings are leases, with two hours as the recommended lifetime. source 10
- PCP (Port Control Protocol). RFC 6887, an IETF Proposed Standard (April 2013) that RFC 6886 says superseded NAT-PMP. It lets "an IPv6 or IPv4 host" control how incoming packets are forwarded by a NAT or a simple firewall, so it can open IPv6 firewall holes as well as IPv4 ports. source 10 source 11
Why UPnP trusts everything on your network
All three were designed to listen on the inside of the router only. NAT-PMP says the gateway "MUST NOT accept mapping requests destined to the NAT gateway's external IP address" source 10, and PCP says a server must "silently ignore PCP requests arriving on any other interface" than its clients' one. source 11 CERT/CC explains that UPnP was designed for a private network, "not available to the WAN," and "does not by default implement authentication." source 7
UPnP opens ports only on the router that runs it. GL.iNet says it "requires a public IP on the router's WAN interface" and "will not work if your ISP uses CGNAT." source 26 If your provider shares one address among customers, or two routers sit in a row, see how to tell if you're behind CGNAT and how to check for double NAT first; the UPnP switch won't change those.
The documented risks
Something on your network opens a port
This is the risk the agencies and makers name most. CISA's home network guidance says UPnP "is also a security risk" because "malware within your network can use UPnP to bypass your router's firewall." source 3 Its training module for high-risk communities adds that "threat actors can use UPnP to spread malware to devices in your network and control them remotely," and says that if you turn UPnP on to add a device, you should turn it off afterwards. source 4 NETGEAR warns that "a worm or malware program can use UPnP to compromise the security of your LAN" source 23, and TP-Link that "malicious applications can exploit it to open ports without your knowledge." source 24
In practice, UPnP is as trustworthy as the least trustworthy device on your network. A separate network for such devices helps, as our VLAN guide explains, but only if the router doesn't accept UPnP requests from that network too.
A web page triggers it
CERT/CC's 2015 note VU#361684 found home routers whose UPnP control addresses were predictable. An attacker who reaches the private network, for example through a DNS rebinding attack, might "silently open ports in a user's firewall" by enticing the user to "a specially-crafted web page." CERT/CC said it was unaware of a full solution and suggested users consider disabling UPnP, weighing risks against rewards. source 7
A router that answers UPnP from the internet
UPnP should never answer from the internet side, but researchers have found routers that do. These figures are what each researcher reported at the time, not current counts:
- Rapid7, January 2013, from scans in the second half of 2012: "Over 80 million unique IPs were identified that responded to UPnP discovery requests from the internet," and Rapid7 estimated 40 to 50 million were vulnerable to at least one of three attacks it described. It urged end users, companies and ISPs to "identify and disable any internet-exposed UPnP endpoints." source 8
- Akamai's UPnProxy research (first published November 2018, page dated January 27, 2022). Vulnerable routers exposed "their IGD (Internet Gateway Device) controls on the WAN/Internet side," letting attackers inject port mappings. Akamai reported 277,000 devices, out of a pool of 3.5 million, running vulnerable UPnP, and more than 45,000 compromised in an injection campaign that exposed computers behind the routers. It listed spam, phishing, click fraud and DDoS as traffic such proxies could carry. source 9
- CallStranger (CVE-2020-12695), June 2020. CERT/CC's VU#339275 says a remote, unauthenticated attacker may be able to abuse UPnP's SUBSCRIBE capability, enabling "amplified DDoS attacks and data exfiltration." It affects UPnP as specified before April 17, 2020. CERT/CC says offering UPnP services on the Internet "is generally considered to be a misconfiguration," advises disabling UPnP on internet-accessible interfaces, and urges vendors to implement the OCF's updated specification. source 6 CISA relayed the note in an alert whose web address is dated June 9, 2020; the archived page itself shows no date. source 5
These are flaws in particular routers' firmware, not in every router with UPnP switched on. Akamai's advice was to disable UPnP on vulnerable routers, check for firmware updates and replace routers that can't be fixed. source 9 Automatic updates cover the patching side.
What actually relies on it
Console multiplayer and remote access to home servers are the documented uses, per each maker's own pages:
| Device or app | What the maker says | If UPnP is off |
|---|---|---|
| Xbox | UPnP "is what your XBOX uses to set up your router for multiplayer gaming and chat," and "If your router or gateway supports UPnP, it's likely turned on by default." source 13 source 12 eero says "UPnP will resolve most connection problems" with a Strict or Moderate Xbox NAT. source 14 | Expect "UPnP Not Successful" and possibly Moderate or Strict NAT. Microsoft lists ports to forward, and where UPnP isn't working or supported suggests the router's DMZ, port forwarding or port triggering. source 12 source 13 |
| PlayStation | The Sony pages we read don't mention UPnP. Sony says that with NAT Type 3 "you may not be able to use Remote Play," that Remote Play uses UDP port 8572, and suggests trying "opening the port on your router." source 15 | Run the connection test; if NAT Type 3 appears, forward the ports Sony or the game lists. |
| Nintendo Switch and Switch 2 | The Nintendo pages we read don't mention UPnP. They grade NAT from A, "best for peer-to-peer communication," to F, "unable to complete peer-to-peer communication." source 18 source 19 | Run the connection test; port forwarding and DMZ for Switch are covered in our NAT guide's ports section. |
| Plex Media Server | "The server will attempt to automatically configure a connection through your router using UPnP or NAT-PMP first." source 20 | Forward an external port to internal port 32400 and turn on "Manually specify public port." source 20 |
| Cameras and NVRs (Reolink as an example) | Most Reolink cameras and NVRs support UPnP (battery-powered and NVR-kit cameras excluded); Reolink's UID service gives remote access through its app "without requiring port forwarding." source 21 source 22 | The app route keeps working. A camera that opened its own port loses it, which is usually the point. |
| Streaming video, browsing, video calls | UniFi says UPnP isn't required for watching online videos, and for games says to check the publisher's documentation. source 27 | No change documented. Outgoing connections and their replies don't use UPnP. |
The FTC also says UPnP "lets your devices find each other on the network." source 1 The router makers' pages we read describe their switch only as opening ports. If a device stops working after the change, turn UPnP back on and check that device's help pages.
Turn it off, leave it on, or forward ports by hand
Start from what your household actually uses.
| Your situation | UPnP off | UPnP on | Manual port forwards |
|---|---|---|---|
| No online gaming, no home server, nothing reached from outside | Best fit: nothing to lose | Risk with no benefit | Not needed |
| One console, router on current firmware | Fine if you add forwards | Works; Microsoft's first step for Xbox NAT | Works: the maker's ports, to a reserved address |
| Two or more consoles of the same kind | Needs per-console forwards | Easiest: it hands out ports as each asks | A port goes to one device; Xbox lets you set an alternate port on the second console |
| Plex or another server you reach from outside | Fine with one forward | Works, but opens whatever the server asks for | One port, documented by the maker; or a VPN, as UniFi suggests |
| Cameras, doorbells or smart-home gear reached through the maker's app | Best fit: the app route doesn't need it | Lets devices you can't inspect open their own ports | Avoid exposing camera ports |
| Old router with no firmware updates, or a mapping you don't recognize | Turn it off now, then see below | Avoid | Only after the router is dealt with |
| Behind CGNAT or double NAT | Makes no difference to the outer NAT | Can't open the provider's NAT | Same limit; fix the NAT first |
For a home that games, both UPnP on a current router and manual forwards are reasonable; the trade-off is in UPnP vs port forwarding vs DMZ. For remote access to a server, UniFi suggests a VPN rather than UPnP source 27; see our Plex and Jellyfin guide and remote access behind CGNAT.
See what UPnP has opened right now
Some routers list every port UPnP has opened, which shows what you'd lose by turning it off and whether anything unexpected is there. Here's what each maker's own page says.
| Maker | Where current mappings show | What to know |
|---|---|---|
| NETGEAR | ADVANCED, Advanced Setup, UPnP: the UPnP Portmap Table lists each device's IP address, the internal and external ports it opened, the port type and whether each is still active; Refresh updates it source 23 | On by default. NETGEAR says: "We recommend that you manually set up port forwarding instead of enabling UPnP" source 23 |
| GL.iNet | The UPnP page lists each mapping's client or application and its LAN address, protocol, external port, internal target, remaining lease and a delete action source 26 | Default lease is 7 days; GL.iNet says to "Enable UPnP only on trusted networks and disable it when not needed" source 26 |
| Firewalla | "Ports opened by UPnP" in the app; tap an entry to block it source 29 | Firewalla can't remove a static forward set on the router in front of it; delete that on the router source 29 |
| TP-Link and Deco | TP-Link says to "check for unexpected or unrecognized port openings in your router's UPnP table" but doesn't say where that table is. The switch is under Advanced, NAT Forwarding, UPnP (the same page's summary says Port Forwarding); on Deco, More, Advanced, NAT forwarding source 24 | On some models "UPnP is disabled by default for security reasons" source 24 |
| Google (Wifi in the Google Home app) | No list. Google says that with UPnP on, "you don't know which devices or applications have asked for open ports" source 25 | "UPnP is enabled by default." Turn it off under Home, Wifi, Settings, Advanced Networking source 25 |
| eero | Not shown on the eero page we read source 14 | Toggle under Settings, Advanced networking, UPnP; it turns blue when active source 14 |
| ASUS | The RT-AX58U V2 manual lists a Port Forwarding tab under System Log but doesn't say whether it includes UPnP entries, and the ASUS FAQs we read don't say either source 30 | The UPnP switch is under WAN, Internet Connection; the manual says UPnP "automatically configures the router to accept incoming connections" source 30 |
| Ubiquiti UniFi | Not covered on the UniFi pages we read; the setting is in the Internet section of the Network application source 27 | UniFi notes UPnP may already be using a port you try to forward manually source 28 |
Match each entry to a device using your router's client list; our device inventory guide shows how to name unknown devices. A console, media server or game PC asking for ports is expected. An entry pointing at a device you can't identify, or one that shouldn't accept connections (a camera, a smart plug, a computer that isn't running a server), is the thing to act on: follow the checks in our hacked-router guide before you change anything else.
How to switch it off without breaking what you use
- Record the current mappings. Note each device and port from the list above, if your router has one. That is your list of what may need a manual forward.
- Reserve addresses for devices that need forwards. A forward points at one address, so give the console or server a DHCP reservation first. Microsoft's Xbox steps start the same way. source 12
- Turn UPnP off. Brand-by-brand locations are in our security settings matrix. If your router has a separate NAT-PMP or PCP switch, treat it as the same decision, since it does the same job.
- Restart the router. Akamai warns that "disabling UPnP might not clear existing NAT injections," and suggests rebooting the router or possibly restoring factory settings, with UPnP disabled. source 9 Check the mapping list again afterwards.
- Add only the forwards each maker documents. For Xbox, Microsoft lists UDP 88, UDP and TCP 3074, UDP and TCP 53, TCP 80, UDP 500, UDP 3544 and UDP 4500. source 12 For Plex, one external port to internal port 32400. source 20 Take ports only from the console, game or app maker's own page; a worked example is in our NAT guide.
- Don't stack methods. Microsoft says: "Don't combine port forwarding, UPnP, and perimeter network (also known as DMZ) settings." source 12
To turn UPnP back on cleanly, Microsoft's steps are to switch it off and save, restart the console, modem and router, then switch it on, save and restart the modem and router again. source 13 That clears stale mappings so the console can ask afresh.
Check the result
Run each console's built-in test before and after; what each result means is in our NAT types guide.
- Xbox: Profile & system, Settings, General, Network settings, Test NAT type. Microsoft says you want Open. source 12 With UPnP deliberately off, "UPnP not successful" is expected; what matters is the NAT type once your forwards are in.
- PS5: Settings, Network, Test Internet Connection. source 16 Sony's PS4 guide says that with Type 3, "communication with other PS4® systems might be impossible." source 17
- Nintendo Switch and Switch 2: System Settings, Internet, Test Connection. source 18
- Plex: under Settings, Server, Remote Access, the server mapping area "will show whether or not a connection has been established." source 20
- The router: recheck the mapping or port forward list a week later; the rest of the inbound checks are in our firewall checklist.
If the NAT type is worse with your forwards in place, see our NAT diagnosis steps for double NAT, CGNAT and filtering settings.
When new equipment is justified
Rarely for UPnP alone: every router maker whose pages we read documents a way to switch it off or block what it opened. Replace a router that can't turn UPnP off or forward ports, or that no longer gets firmware; the FBI's May 2025 warning says an end-of-life router should be replaced "with an updated model if possible." source 31 Check yours with our end-of-life guide, then compare our router rankings or gateway rankings. The NAT guide's buying section covers gaming routers.
When to get professional help
A small office with servers, cameras on an NVR or staff who connect from outside needs a written plan for what's exposed, usually with a VPN rather than open ports. When the job needs hands on site, RouterHaus can connect you with a contractor, licensed where local rules require it, through a consultation request. More guides are on our security topic page.
Frequently asked questions
Is UPnP safe to leave on?
It's a trade-off. UPnP lets any device or program on your network open ports in the router's firewall without asking you, which is why CISA, the NSA and the FTC say to turn it off unless you need it. If you game and your router gets firmware updates, leaving it on is a reasonable choice; with devices you can't update or a router that no longer gets patches, turn it off and use manual port forwards.
What stops working if I turn off UPnP?
Mainly console multiplayer and party chat, which may drop to a Moderate or Strict NAT, and apps that open their own ports, such as Plex remote access. Forward the ports the console or app maker lists to restore what you use.
Is NAT-PMP the same as UPnP?
It does the same job by a different protocol. NAT-PMP (RFC 6886) came from Apple and was superseded by PCP (RFC 6887), which also covers IPv6. Treat separate UPnP and NAT-PMP or PCP switches as one decision.
Is port forwarding safer than UPnP?
It's more predictable. A manual forward opens only the ports you chose, to one device, and nothing else on your network can add to it. It stays open all the time, so forward only what the maker lists and delete forwards you no longer use.
How do I see what UPnP has opened on my router?
It depends on the maker. NETGEAR shows a UPnP Portmap Table, GL.iNet shows active mappings with their leases, and Firewalla lists ports opened by UPnP in its app. Google's help page says you don't know which devices have asked for open ports. Check your router maker's own help pages if yours isn't listed here.
Sources
Read on December 3, 2026. Pages without a date are marked undated.
- FTC Consumer Advice: How to secure your home Wi-Fi network (December 2022)
- NSA: Best practices for securing your home network (February 2023, PDF)
- CISA: Home network security (undated)
- CISA: Project Upskill, Module 5: Securing your home Wi-Fi (undated)
- CISA: CERT/CC reports vulnerability in Universal Plug and Play protocol (archived; the page shows no date, and its web address is dated June 9, 2020)
- CERT/CC Vulnerability Note VU#339275: UPnP SUBSCRIBE can be abused (CallStranger), June 8, 2020, revised July 8, 2020
- CERT/CC Vulnerability Note VU#361684: Router devices do not implement sufficient UPnP authentication and security (August 31, 2015, revised January 4, 2016)
- Rapid7: Security flaws in Universal Plug and Play: Unplug, don't play (January 29, 2013)
- Akamai: UPnProxy: EternalSilence (originally posted November 2018, updated in 2022; byline January 27, 2022)
- IETF RFC 6886: NAT Port Mapping Protocol (NAT-PMP), April 2013
- IETF RFC 6887: Port Control Protocol (PCP), April 2013
- Xbox Support: Troubleshoot NAT errors and multiplayer game issues (undated)
- Xbox Support: "UPnP Not Successful" appears in your network settings (undated)
- eero: How do I fix Xbox NAT issues with eero? (undated)
- PlayStation Support: How to troubleshoot Remote Play connection issues (undated)
- PlayStation Support: PS5 error code WS-114241-3 (connection test path) (undated)
- PlayStation: PS4 User's Guide, Test Internet Connection (NAT types) (undated)
- Nintendo Support: How to use the Internet connection test (undated)
- Nintendo Support: Unable to connect with others online (errors during match-making process) (undated)
- Plex Support: Remote streaming (setting up remote access) (undated)
- Reolink Support: Introduction to UPnP (undated)
- Reolink Support: How to enable UID for Reolink products (undated)
- NETGEAR: How do I enable or disable Universal Plug and Play on my NETGEAR router? (July 7, 2025)
- TP-Link: FAQ 4624, UPnP on TP-Link routers and Deco (May 12, 2026)
- Google: Universal Plug and Play (UPnP), Google Home and Nest Help (undated)
- GL.iNet: UPnP, Router Docs 4 (October 29, 2026, footer date)
- Ubiquiti: UniFi Gateway, UPnP (undated)
- Ubiquiti: UniFi Gateway, Port Forwarding (undated)
- Firewalla: What to do if I have ports open during external port scan? (undated)
- ASUS: RT-AX58U V2 user guide (First Edition, March 2024, PDF)
- FBI IC3: Cyber criminal proxy services exploiting end of life routers, I-050725-PSA (May 7, 2025)