UPnP lets applications automatically open ports on your router without you doing it manually

UPnP (Universal Plug and Play) is a setting that lets programs on your network ask your router to forward traffic to them automatically. Instead of logging into your router and manually opening ports, an application can request access when it needs it. Most routers have UPnP turned off by default for security reasons — opening ports manually gives you more control over what gets access to your network.

Turning UPnP on involves two steps: enabling it on your router, then enabling it on the device or application that needs it. The exact steps depend on your router model and what you're trying to connect.

Key Takeaways

  • UPnP is disabled by default on most routers; you must log into your router's settings to turn it on.
  • After enabling UPnP on your router, you typically need to enable it in the application settings as well — the router setting alone is not enough.
  • Your router's IP address is usually printed on the device itself or on a sticker on the back; this is what you type into your browser to access settings.
  • Turning on UPnP opens your network to automatic port forwarding, so only enable it if you trust the applications requesting access.

How to enable UPnP on your router

First, open a web browser and go to your router's settings page. The address is usually printed on a sticker on the back or bottom of your router — it typically looks like 192.168.1.1 or 192.168.0.1. You may also see it listed as your router's default gateway. Type this address into your browser's address bar and press Enter.

Log in using your router's username and password. If you have never changed these, they are usually the defaults printed on the router itself or in the manual — common defaults are admin/admin or admin/password. If you have changed them and forgotten them, you can reset the router to factory settings by holding a small reset button for 10 to 15 seconds, though this erases all your custom settings.

Once logged in, look for a section called UPnP, Universal Plug and Play, or Port Mapping. This is often under Advanced Settings, Network Settings, or a section specific to your router brand. The exact location varies — some routers put it under NAT settings, others under a Firewall or Security tab. Check your router's manual or the manufacturer's website if you cannot find it.

Click the checkbox or toggle to enable UPnP, then save or apply your changes. Your router may restart briefly. Once it comes back online, UPnP is active on your router.

How to enable UPnP on your device or application

After enabling UPnP on your router, you need to turn it on in the application that will use it. This step is often overlooked and is why UPnP sometimes does not work even though it is enabled on the router.

Open the application or device that needs port forwarding — this might be a gaming console, a media server, a VoIP phone, or a PC application. Look for settings related to UPnP, port forwarding, network, or connectivity. The location depends entirely on the application. A gaming console like PlayStation or Xbox usually has this under Network Settings. A PC application might have it in Preferences or Settings under a Network tab.

Enable the UPnP option in that application's settings. Some applications do this automatically once UPnP is on at the router level, while others require you to manually turn it on. Check the application's documentation if you are unsure.

What to do if UPnP is not working

If you have enabled UPnP on both your router and your application but it still is not working, the problem is usually one of a few things. First, confirm that UPnP is actually on by logging back into your router and checking the setting again — some routers reset it after a power outage or firmware update.

Second, check whether your router and the device are on the same network. If your device is connected to a guest network or a different band (2.4 GHz versus 5 GHz), UPnP may not see it. Move the device to your main network and try again.

Third, restart both your router and the device. Power off the router for 30 seconds, turn it back on, and wait for it to fully boot. Then restart the device or application. Sometimes UPnP needs a fresh connection to negotiate properly.

If the application still cannot open ports, check whether your router has a firewall rule blocking it. Some routers let you whitelist applications or devices that are allowed to use UPnP. You may need to add your device to that list manually.

UPnP security considerations

Enabling UPnP means any application on your network can ask your router to open ports without asking you first. This is convenient but also a security trade-off. If a malicious application gets onto your network, it could use UPnP to expose your devices to the internet without your knowledge.

For this reason, only enable UPnP if you trust the applications and devices on your network. If you live in a shared space or use public Wi-Fi, leaving UPnP off is safer. For a home network with devices you control, the risk is usually low.

Some routers let you limit which devices can use UPnP by creating a whitelist. If your router has this option, use it to restrict UPnP to only the devices that need it.

When to use UPnP versus manual port forwarding

UPnP is faster and easier than manually opening ports, but manual port forwarding gives you more control. If you are setting up a gaming server, a media server, or any application that needs consistent port access, manual port forwarding is often more reliable because the ports stay open even if the application restarts.

UPnP is better for applications that only need temporary access or that you use occasionally. It is also useful if you have multiple devices that need different ports — letting them request their own ports is simpler than managing them all yourself.

If an application is not working and you have already tried UPnP, switching to manual port forwarding is a reasonable next step. You can do both at the same time — UPnP and manual forwarding do not conflict.

Frequently Asked Questions

Do I need to enable UPnP on my device if it is already on my router?

Usually yes. The router setting allows UPnP to work, but the device or application also needs to be configured to use it. Some applications enable it automatically once the router supports it, but many require you to turn it on in their own settings. Check your application's documentation to be sure.

Will enabling UPnP slow down my internet?

No. UPnP only negotiates port forwarding when an application requests it; it does not run constantly or consume bandwidth. Once ports are open, data flows normally.

Can I enable UPnP on just one device without affecting others?

Yes. UPnP on the router is a network-wide setting, but each device or application decides whether to use it. Enabling UPnP on your router does not force other devices to use it — only the ones you configure will request ports.

What if I cannot find the UPnP setting on my router?

Check your router's manual or the manufacturer's support website for your specific model. Some older routers do not support UPnP at all. If your router is very old, upgrading may be necessary if UPnP is important for your setup.

Is it safe to leave UPnP on all the time?

It is reasonably safe on a home network where you control all the devices. If you are concerned about security or live in a shared space, you can turn it off when you are not using applications that need it, or use your router's whitelist feature to limit which devices can use it.