What UPnP does and why you might need it
UPnP (Universal Plug and Play) is a feature that lets programs on your computer or phone automatically poke holes through your router's firewall without you doing it manually. When you enable it, applications can request port forwarding on their own instead of you logging into your router settings and creating those rules by hand.
You need UPnP if you're running a game server, hosting a video call process, or using peer-to-peer software that needs incoming connections. Without it, you'd have to manually forward ports every time you wanted to use one of these programs — a tedious process that most people get wrong. With UPnP on, the process handles the setup itself.
The tradeoff is that UPnP can be a security risk if malware on your device decides to open ports without your knowledge. That's why you should only turn it on if you actually need it, and turn it off again when you're done.
Key Takeaways
- UPnP lets programs automatically create port forwarding rules instead of you doing it manually through your router settings.
- You only need UPnP if you're running a game server, hosting a video call, or using peer-to-peer software that requires incoming connections.
- The setting is usually found in your router's admin panel under Network Settings, UPnP, or a similar section — the exact location varies by brand.
- After enabling UPnP, restart your router and the program that needs it, then check that the port forwarding rule appeared automatically.
- Turn UPnP off again once you're finished using the program that needed it, to reduce the surface area for malware.
Finding your router's admin panel
Before you can turn on UPnP, you need to log into your router. Open a web browser and type 192.168.1.1 or 192.168.0.1 into the address bar — one of these is the default gateway for most home routers. If neither works, check the sticker on the back or bottom of your router; it will show the correct address.
When the login page appears, enter your router's username and password. If you've never changed these, they're usually printed on that same sticker — often something like admin/admin or admin/password. If you changed them and forgot, you'll need to reset the router to factory settings, which erases all your custom settings. Most routers have a small reset button you hold for 10 seconds while powered on.
Once you're logged in, you'll see a dashboard with various menu options. Look for a section called Settings, Advanced, Network, or UPnP — the exact name depends on your router brand.
Locating the UPnP setting in common router brands
The path to UPnP varies significantly by manufacturer. On TP-Link routers, go to Advanced > Network > UPnP. On Netgear, look under Advanced > UPnP. Asus routers typically have it under Advanced Settings > NAT-PMP/UPnP. Linksys puts it in Advanced > NAT-PMP/UPnP or sometimes under Connectivity.
If you can't find it by browsing, use your browser's Find function (Ctrl+F on Windows, Cmd+F on Mac) and search for "UPnP" or "NAT-PMP" on each settings page. Some routers label it as "UPnP IGD" (Internet Gateway Device) or straightforward "Universal Plug and Play."
If your router doesn't have a UPnP option at all, it either doesn't support the feature or it's already on by default. Check your router's manual or the manufacturer's support website to confirm.
Enabling UPnP and restarting
Once you've found the UPnP setting, look for a toggle or checkbox next to it. Click to turn it on — you should see it change to "Enabled" or show a green checkmark. Some routers also have a separate option for "UPnP IGD" or "NAT-PMP"; turn both on if they're present.
After enabling UPnP, save your changes. Most routers will prompt you to confirm or will save automatically. Then restart your router by unplugging it for 10 seconds and plugging it back in, or by clicking a Restart button in the admin panel if one is available. Wait about two minutes for the router to fully boot up.
Next, restart the program or device that needs UPnP — whether that's your game, your video call software, or your peer-to-peer process. The program will now be able to request port forwarding automatically.
Verifying that UPnP is working
To confirm UPnP is actually doing its job, log back into your router's admin panel and look for a section called Port Forwarding, NAT, or UPnP Status. You should see a new rule that the program created automatically — it will show the port number and the device name or IP address that requested it.
If you don't see a new rule, the program either doesn't support UPnP or hasn't requested a port yet. Check the program's settings to see if there's an option to enable UPnP or automatic port forwarding. Some programs require you to turn on the feature in their own settings before they'll use it.
If the rule appeared but the program still isn't working, the problem is likely something else — a firewall on your computer, incorrect program settings, or a network configuration issue. UPnP only handles port forwarding; it doesn't fix other connectivity problems.
Turning UPnP off when you're done
Once you've finished using the program that needed UPnP, go back into your router's admin panel and turn UPnP off. This removes the automatic port forwarding rule and closes the hole in your firewall. It's a good habit to keep UPnP disabled most of the time and only turn it on when you actually need it.
When you disable UPnP, the port forwarding rule it created will usually disappear automatically. If it doesn't, you can delete it manually from the Port Forwarding section of your router settings. Restart your router again to make sure the change takes effect.
Frequently Asked Questions
Is UPnP a security risk?
UPnP itself isn't inherently dangerous, but it does create a window for malware to open ports without your knowledge. If your computer is infected, malware could use UPnP to expose services you didn't intend to expose. This is why you should only enable it when needed and disable it afterward.
Will enabling UPnP slow down my internet?
No. UPnP only handles port forwarding setup; it doesn't affect your internet speed or bandwidth. Once a port is forwarded, the data flows the same way it would with manual port forwarding.
What if my router doesn't have UPnP?
You'll need to manually set up port forwarding in your router's admin panel. This means finding the Port Forwarding section, entering the port number, and pointing it to your device's IP address. It's more work, but it's the only option if UPnP isn't available.
Can I leave UPnP on all the time?
Technically yes, but it's not recommended. Leaving it on permanently increases the risk that malware could exploit it. The better practice is to enable it only when you need it and disable it when you're done.
Why isn't the program finding the port even though UPnP is on?
The program might not support UPnP, or it might have its own setting to enable automatic port forwarding. Check the program's documentation or settings menu. You may also need to restart the program after enabling UPnP on the router.