Short answer: if nothing on your network needs connections coming in from the internet, turn UPnP off. CISA and the Canadian Centre for Cyber Security both advise disabling it. If a game console or a media server stops working without it, you have two options. You can forward just the ports that device needs, or you can leave UPnP on and keep the router’s firmware up to date. TP-Link, which makes routers, considers the second option reasonable for people who rely on those features.
What UPnP does
Universal Plug and Play is a protocol that lets devices on the same network find, connect to and work with one another automatically, as the Canadian Centre for Cyber Security puts it.
The part that matters for your router is ports. Your router normally blocks connections that start on the internet, which is why port forwarding exists. With UPnP, a device doesn’t wait for you to set up a rule. TP-Link describes the device asking the router to open the ports it needs, and the router doing so without a password or any approval from you. TP-Link also says most routers have UPnP turned on by default.
Why security agencies say turn it off
The Canadian Centre for Cyber Security recommends disabling UPnP, especially on home routers. It says UPnP devices often have little or no authentication or access control. It also warns that UPnP’s control over settings such as port forwarding can be used by attackers to get around a firewall.
CISA gives the same advice. It says attackers can use UPnP to spread malware to devices on your network and control them remotely. It also notes that some devices need UPnP turned on while you first add them to the network, and says to disable it again afterwards.
TP-Link explains the risk from the router’s side. UPnP has no built-in authentication, so any device on your network can ask for ports to be opened without your approval, including one that has been compromised. It adds that UPnP makes it harder to see which ports are open on your router.
What can stop working
The Cyber Centre says to check what your devices need before you switch UPnP off, because some need it to work properly. TP-Link lists the usual cases:
- Game consoles: with UPnP off, players often see messages such as “NAT Type: Strict” or “UPnP Not Successful”. NAT types explained covers what those results mean and the other causes behind them.
- Smart home devices: remote access from their apps can break, for example checking a camera while you’re away.
- Media servers and file sharing: remote access to a server such as Plex will likely break, and so can peer-to-peer apps.
The middle ground: port forwarding or isolation
TP-Link calls manual port forwarding the more controlled alternative: you choose which ports stay open and for which device, and nothing opens without your approval. Our guide to port forwarding shows how to set one up, including giving the device a fixed address first.
If you decide to keep UPnP on, the Cyber Centre suggests ways to reduce the risk:
- Keep the devices that use UPnP on a separate network or VLAN. On most home routers, a separate network for smart devices is the closest option.
- Keep your devices updated, with automatic updates on where they’re available. The same goes for the router: see how to update router firmware.
- Review your router’s port-forwarding rules regularly.
- Block the ports associated with UPnP at your internet gateway.
How to turn it off
The menus differ between routers, but the Cyber Centre’s steps are general enough to follow on most:
- Log in to your router’s admin page or app. If you’ve never done that, see how to log in to your router.
- Find the UPnP setting. The Cyber Centre says it’s often under Advanced or NAT forwarding.
- Turn UPnP off and save.
Then check whatever you use that might depend on it: run your console’s network test, and open any camera or media server app from outside your home, for example on mobile data.