A new console is plugged in, goes online, and is playing with friends straight away. A Wi-Fi camera is installed, and the phone app shows its picture from outside the house. Nobody touched the router settings.

What's quietly working behind that is usually UPnP. It's convenient, and most of the time causes no trouble. But how it works has one property worth understanding before deciding to leave it on.

How it works

Home routers use NAT: every device in the house shares one public address, and unsolicited connections from outside are refused by default. That's why a device that needs to receive connections from outside, such as a console hosting a match, needs a port opened. NAT itself is explained in what NAT and CGNAT are.

Opening a port manually means logging into the router and adding a port forwarding rule. UPnP (Universal Plug and Play) skips that step: a device on the network simply asks the router to open a given port for it, and the router grants it without question.

The key phrase is that last part. The router doesn't check who is asking or why.

Why it exists

Because without UPnP, plenty of things people expect to "just work" don't:

  • Game consoles report Strict or Moderate NAT, can't host, and voice chat sometimes fails to connect.
  • Calling and file-sharing apps fall back to slower relay paths.
  • Some cameras and recorders can't be reached from outside without the manufacturer's cloud service.

Asking every household to write port forwarding rules isn't realistic. UPnP is the industry's answer to that, which is why most routers ship with it switched on.

Where the risk is

The problem isn't UPnP itself, it's who can use it. Every device on the network can ask for a port to be opened, including devices you don't fully trust:

  • A device that's already compromised. Malware on a laptop or phone can ask the router to open a port so an intruder can come in from outside. You get no warning at all. Other signs are covered in signs your Wi-Fi has been compromised.
  • Cheap smart devices. Cameras, doorbells, or recorders that open a port to the internet often carry a login page with a default password and firmware that's never updated. Opening a port puts them right in front of the automated scanners that sweep the internet every day. See Wi-Fi CCTV camera security and smart home device security.
  • Ports that never close. UPnP openings are meant to be temporary, but many linger until the router restarts, and nobody reviews them.
  • Old routers with UPnP flaws. Some routers have accepted UPnP requests from the internet side, not just from inside the home. Updated firmware closes holes like this; the reasons are in updating router firmware.

Flaws have also been found in the protocol itself, not just in one router brand. In 2020, a flaw called CallStranger (CVE-2020-12695) let UPnP's subscription feature be abused to scan networks, push data out, and assist traffic-flood attacks. The specification was fixed in April 2020, but that fix only reaches your home if the manufacturer releases new firmware and your device actually installs it. Many provider-supplied ONTs are updated remotely, while extra routers bought separately are often left on factory firmware.

Should it be turned off?

The answer depends on what's in the house, not on a general rule:

SituationAdvice
No game console, no app complainingTurn it off. You'll barely notice a difference.
A console or gaming PC, no cheap smart devicesFine to leave on, or replace it with manual forwarding for the console only.
Many cameras, doorbells, and smart devicesTurn it off, or move smart devices to a separate network.
A business network or Wi-Fi used by guestsTurn it off. Guests must not be able to open ports on your router.

For a network many people use, that last point isn't negotiable. Every guest phone on the same network can ask for a port to be opened. It's one reason guest Wi-Fi is always kept separate; how to do that is in a guest network on a home router and separating the guest network.

Three common examples

  • A family home with one console and two cheap cameras from an online marketplace. Turn UPnP off, forward ports manually for the console only, and view the cameras through the manufacturer's cloud app, which is designed not to need an open port. Choosing those cameras is covered in choosing a Wi-Fi CCTV camera for home.
  • A kos (boarding house) with one Wi-Fi network for ten rooms. Turn it off. You don't know what's installed on the tenants' laptops, and every one of those devices can ask your router to open a port. A safer layout is covered in Wi-Fi for boarding houses.
  • A warung or café that sticks the Wi-Fi password on the tables. Turn it off, then separate the till from the customer network. See Wi-Fi for cafés and restaurants.

Seeing which ports are already open

Before switching anything off, look at what's happening. In the router's admin page, find a menu called UPnP, Port Mapping, or a section under NAT or Advanced. The list usually contains:

  • A name or description sent by the requesting app.
  • External and internal ports, plus the protocol (TCP or UDP).
  • The IP address of the device that asked.

Match that address against the list of connected devices. A port opened by a game console is normal. A port opened by a device you don't recognise, or by a laptop that isn't running anything that needs it, deserves a closer look. Identifying devices is covered in finding out who's on your Wi-Fi, and common port numbers in ports and protocols worth knowing.

ISP-supplied routers don't always show this list. If the UPnP menu only has an on/off switch, assume you can't inspect it, and decide based on the table above.

Where UPnP lives on a provider-supplied ONT

Many Indonesian homes don't use a separate router. The box glowing next to the TV is an ONT supplied by the provider, such as a ZTE or Huawei unit from IndiHome, or similar equipment from other providers. UPnP on these devices is usually switched on from installation, and rarely checked again.

The ONT admin page usually opens at 192.168.1.1; how to get in is covered in logging in to 192.168.1.1. Menu names vary by model and firmware version, but the pattern is roughly this:

DeviceUsually found underNotes
ZTE ONT (e.g. F609, F670L)Local Network → UPnP, or Application → UPnP on some firmwareChoose Off or untick, then Apply
Huawei ONT (HG8245H family)Network Application → UPnP ConfigurationProvider firmware sometimes hides this menu
An extra router you bought yourselfUsually under Advanced, NAT, or ForwardingAlso check that its firmware is still updated

The account you sign in with affects what you can see. On some ONTs, an ordinary user account shows only part of the menu. If UPnP isn't listed, request the change through the provider's official app or customer service, not through someone who contacts you out of the blue claiming to be a technician. That scam is covered in scammers posing as internet technicians.

If you've added your own router behind the ONT, check both. Devices ask the router they're connected to for ports, so UPnP on that router matters most. The tidier layout, with the ONT in bridge mode and your router handling NAT, is explained in ONT bridge mode with your own router.

One more local quirk: a brief PLN power cut also restarts the ONT. UPnP mappings are usually lost at that point, then requested again by devices once the network is back. So a list that looks empty right after the power returns doesn't mean nothing has asked for a port. Check again a few minutes later.

The alternative: open only what's needed, by hand

If one device genuinely needs an open port, the more controlled approach is:

  1. Give that device a fixed IP address via a DHCP reservation, so the rule doesn't miss when its address changes.
  2. Open only the ports listed in the console's or app's official documentation, not wide ranges.
  3. Turn UPnP off, then test again. Most consoles will show Open or Moderate NAT with correct manual rules.

The full steps are in port forwarding on your router. For gaming, how NAT affects latency is covered in high ping while gaming.

When UPnP is on but still doesn't work

A common complaint: UPnP is on, the port shows as open on the router, yet the console still says Strict and the camera still can't be reached from outside.

The most common cause in Indonesia is CGNAT. Many home plans don't give the customer's router a public address. Your router sits behind the provider's own NAT, and ports opened by UPnP stop at your home router and never reach the internet. No setting at home gets past it.

To confirm: compare the WAN address on the router's status page with the address an IP-checking site reports. If they differ, or the WAN address falls between 100.64 and 100.127, you're behind CGNAT. The options are asking the provider for a public IP, sometimes at extra cost, or using services that don't need an open port at all. The comparison for businesses is in static vs dynamic IP for business.

For some people, CGNAT actually makes UPnP less risky, since opened ports aren't visible from the internet. But that's luck, not protection: the moment the provider assigns a public IP, every port UPnP opened becomes genuinely open. Other router hardening steps are summarised in securing your home router.

Frequently asked questions

Should UPnP be turned off?

For a home with no game console and no app that genuinely needs it, yes: turn it off, and you'll barely notice a difference. If a console or app struggles without UPnP, the tidier option is opening ports manually for that one device.

Why does my console still show Strict NAT with UPnP on?

Usually because your connection sits behind CGNAT. UPnP only opens ports on your home router, and above it there's another NAT run by the provider that you can't configure from home. The fix is asking the provider for a public IP, not changing router settings.

How can I see which ports UPnP has opened?

Most routers list them in the admin page, usually under NAT, Forwarding, or Advanced, labelled UPnP or Port Mapping. The list shows the app name, the port numbers, and the IP address of the device that asked.

Where is the UPnP menu on an IndiHome ONT or another provider-supplied ONT?

It depends on the brand and firmware. On many ZTE ONTs, UPnP sits under Local Network or Application. On the Huawei HG8245H family, it's under Network Application. If the menu doesn't appear, the account you're using probably lacks access to it, and the change has to be requested through the provider's official customer service.