NASutils Knowledge BaseUnofficialPolski

Is UPnP safe, and which ports does Rtorrent 16 open on my router?

UPnP lets any program on your network ask the router to open a port, so turn it on only if you trust the devices on the network. Rtorrent 16 asks for the ports listed below and no others. It does not expose the panel until you turn WebUI ports on.

Topic: Network

Which ports Rtorrent 16 asks for

Propose a change

PortWhen
BitTorrent, TCP and UDPalways, while UPnP or PCP / NAT-PMP is on
DHT, UDPwhile DHT runs
Panel, TCPonly with WebUI ports on (off by default)
Mobile port, TCPwhile Remote access for the phone apps is on and Mobile ports is not turned off
TCP 80while a Let's Encrypt certificate for the panel is issued or renewed

Only paired phones get an answer on the mobile port. When Rtorrent 16 finds a second router in front of yours, it asks that one for the same ports through PCP or NAT-PMP. When it stops, it hands back the mappings it made.

  1. Open Network & NAT. In Network services the column Mapped as shows each mapping and By shows the method.
  2. Open Settings → Port forwarding & VPN and check Router port mappings. Leave WebUI ports off unless you need the panel from the internet.
  3. If you want no automatic mappings, turn off UPnP and PCP / NAT-PMP. Press Review & save and confirm. Rtorrent 16 then hands its mappings back.
  4. Forward the BitTorrent port (TCP and UDP) on the router by hand, and the DHT port (UDP) too if DHT is on.
  5. certificate, certyfikat
    A signed file that confirms the key of a domain for HTTPS.
    If the panel has a Let's Encrypt certificate, forward TCP 80 to the NAS too and keep that forward. Every renewal needs it.

Check that it worked

Propose a change

The router's mapping list (usually in its UPnP section) holds only entries you expect. In Rtorrent 16 press Check TCP port; IPv4 TCP port … open confirms that peers reach you.

What not to do

Propose a change

  • Do not turn on WebUI ports without your own password. The switch's help warns that it can expose the panel's login to the internet.
  • Do not turn UPnP off in the router before you have forwarded the ports by hand, if you want to keep incoming connections.

Checked: 25 November 2026, Rtorrent 16 16.28-14M.

All questions