Fixed port setting doesn't work.

Bug #704360 reported by Mith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
New
Undecided
Unassigned

Bug Description

If i setup qBittorrent to use a fixed port for torrents, and a fixed port for DHT/PeX/etc... I can see it uses the correct fixed port for DHT/PeX/etc... but for torrents it just uses random ports that are all over the place instead of the one fixed port i set up to use.

Using latest version of qBittorrent 2.6.3 (libtorrent 0.15.5) on Win XP SP3. Also happened with previous versions of qBittorrent.

Revision history for this message
Mith (d-deleeuw) wrote :

Added a screenshot in which you can clearly view what ports qBittorrent is using. Instead of just using the one port i assigned to it, it uses ports that are all over the place inc the port i assigned to it. Is this maybe intentional? Cause to me it seems that if you can setup one port to use, why wouldn qBittorrent just use every port?

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I double checked the code and with my own machine and it seems fine. But I'm running Linux, the issue may be Windows specific.

However, one thing that could explain this is:
if libtorrent cannot listen on the selected port, it will then use any port available (as fallback).

Are you sure this is not what happens? For example, you could try using a different listen port and restart to see if it changes anything. I will keep looking into it to see if I can find another explanation for this.

Do you have any non-default and related setting? For example, are you forcing qBittorrent to use a particular network interface from advanced program preferences?

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Here is there netstat output on my machine:
tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN 5566/qbittorrent
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 5566/qbittorrent
tcp6 0 0 :::6881 :::* LISTEN 5566/qbittorrent

6881 for BitTorrent and 8080 for Web UI (+ a few omitted UDP ports for Local Peer discovery, DHT, UPnP, ...)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.