Web UI port doesn't get a UPnP refresh after lease expiration #11349

Open
opened 2026-02-21 21:24:32 -05:00 by deekerman · 1 comment
Owner

Originally created by @alcayaga on GitHub (Dec 2, 2020).

Please provide the following information

qBittorrent version and Operating System

qBittorrent v4.3.1
Raspbian GNU/Linux 10 (buster)

If on linux, libtorrent-rasterbar and Qt version

Qt: | 5.11.3
Libtorrent: | 1.2.11.0

What is the problem

UPnP ports for BitTorrent protocol are correctly opened after the lease time expires (upnp_lease_duration) but the port for the Web UI only it's opened at startup

What is the expected behavior

The Web UI port is also refreshed after lease time expires

Steps to reproduce

  1. Set upnp_lease_duration to a number larger than 0
  2. Restart qBitTorrent
  3. Confirm that Web UI port is opened in UPnP
  4. Wait until upnp_lease_duration expires, confirm that the UPnP doesn't refresh the Web UI Port

Extra info(if any)

Log file

(N) 2020-11-28T17:45:04 - qBittorrent v4.3.1 started
(N) 2020-11-28T17:45:04 - Using config directory: /home/qbittorrent/.config/qBittorrent/
(I) 2020-11-28T17:45:04 - Trying to listen on: 0.0.0.0:61094,[::]:61094
(N) 2020-11-28T17:45:04 - Peer ID: XXX
(N) 2020-11-28T17:45:04 - HTTP User-Agent is 'qBittorrent/4.3.1'
(I) 2020-11-28T17:45:04 - DHT support [ON]
(I) 2020-11-28T17:45:04 - Local Peer Discovery support [ON]
(I) 2020-11-28T17:45:04 - PeX support [ON]
(I) 2020-11-28T17:45:04 - Anonymous mode [OFF]
(I) 2020-11-28T17:45:04 - Encryption support [ON]
(I) 2020-11-28T17:45:04 - UPnP / NAT-PMP support [ON]
(I) 2020-11-28T17:45:04 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Oct 31 22:00:11 2020.
(N) 2020-11-28T17:45:04 - Using built-in Web UI.
(W) 2020-11-28T17:45:04 - Couldn't load Web UI translation for selected locale (en_US).
(N) 2020-11-28T17:45:04 - Web UI: HTTPS setup successful
(N) 2020-11-28T17:45:04 - Web UI: Now listening on IP: *, port: 8080
(I) 2020-11-28T17:45:04 - Successfully listening on IP: 127.0.0.1, port: TCP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: 127.0.0.1, port: UDP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: TCP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX port: UDP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: ::1, port: TCP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: ::1, port: UDP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: TCP/61094
(I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: UDP/61094
(I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/61094
(I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/61094
(I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/8080

...

(I) 2020-12-02T07:07:43 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/61094
(I) 2020-12-02T07:07:43 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/61094
Originally created by @alcayaga on GitHub (Dec 2, 2020). **Please provide the following information** ### qBittorrent version and Operating System qBittorrent v4.3.1 Raspbian GNU/Linux 10 (buster) ### If on linux, libtorrent-rasterbar and Qt version Qt: | 5.11.3 Libtorrent: | 1.2.11.0 ### What is the problem UPnP ports for BitTorrent protocol are correctly opened after the lease time expires (upnp_lease_duration) but the port for the Web UI only it's opened at startup ### What is the expected behavior The Web UI port is also refreshed after lease time expires ### Steps to reproduce 1. Set upnp_lease_duration to a number larger than 0 2. Restart qBitTorrent 3. Confirm that Web UI port is opened in UPnP 3. Wait until upnp_lease_duration expires, confirm that the UPnP doesn't refresh the Web UI Port ### Extra info(if any) Log file ``` (N) 2020-11-28T17:45:04 - qBittorrent v4.3.1 started (N) 2020-11-28T17:45:04 - Using config directory: /home/qbittorrent/.config/qBittorrent/ (I) 2020-11-28T17:45:04 - Trying to listen on: 0.0.0.0:61094,[::]:61094 (N) 2020-11-28T17:45:04 - Peer ID: XXX (N) 2020-11-28T17:45:04 - HTTP User-Agent is 'qBittorrent/4.3.1' (I) 2020-11-28T17:45:04 - DHT support [ON] (I) 2020-11-28T17:45:04 - Local Peer Discovery support [ON] (I) 2020-11-28T17:45:04 - PeX support [ON] (I) 2020-11-28T17:45:04 - Anonymous mode [OFF] (I) 2020-11-28T17:45:04 - Encryption support [ON] (I) 2020-11-28T17:45:04 - UPnP / NAT-PMP support [ON] (I) 2020-11-28T17:45:04 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Oct 31 22:00:11 2020. (N) 2020-11-28T17:45:04 - Using built-in Web UI. (W) 2020-11-28T17:45:04 - Couldn't load Web UI translation for selected locale (en_US). (N) 2020-11-28T17:45:04 - Web UI: HTTPS setup successful (N) 2020-11-28T17:45:04 - Web UI: Now listening on IP: *, port: 8080 (I) 2020-11-28T17:45:04 - Successfully listening on IP: 127.0.0.1, port: TCP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: 127.0.0.1, port: UDP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: TCP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX port: UDP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: ::1, port: TCP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: ::1, port: UDP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: TCP/61094 (I) 2020-11-28T17:45:04 - Successfully listening on IP: XXX, port: UDP/61094 (I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/61094 (I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/61094 (I) 2020-11-28T17:45:04 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/8080 ... (I) 2020-12-02T07:07:43 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/61094 (I) 2020-12-02T07:07:43 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/61094 ```
Author
Owner

@ghost commented on GitHub (Dec 2, 2020):

UPnP lease duration is under libtorrent section.
That setting doesn't apply to the WebUI.

The WebUI acquires a permanent lease and there's no need to renew it unless you have restarted the router. This behaviour is currently not configurable.

@ghost commented on GitHub (Dec 2, 2020): UPnP lease duration is under libtorrent section. That setting doesn't apply to the WebUI. The WebUI acquires a permanent lease and there's no need to renew it unless you have restarted the router. This behaviour is currently not configurable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#11349
No description provided.