couldn't listen on any of the given ports

Bug #248862 reported by Pablo Castellazzi
2
Affects Status Importance Assigned to Milestone
libtorrent-rasterbar
New
Unknown
qBittorrent
Fix Released
Medium
Christophe Dumez

Bug Description

20:50:19 - qBittorrent v1.0.0 started.
20:50:19 - Be careful, sharing copyrighted material without permission is against the law.
20:50:19 - qBittorrent is bind to port: 51135
20:50:19 - UPnP support [ON]
20:50:19 - NAT-PMP support [OFF]
20:50:19 - DHT support [ON], port: 51135
20:50:19 - PeX support [ON]
20:50:19 - Local Peer Discovery [ON]
20:50:19 - Encryption support [ON]
20:50:19 - <long torrent list removed>
20:50:22 - Couldn't listen on any of the given ports.

but my router (NetGear WPN824v2) report the connection is
open and forwarded with UPnP.
in my Ubuntu 8.04.1 box netstat -lntup report both ports
(tcp and udp) open and assigned to qbittorrent

the same happend with a manual port forwarding, i also tried without:
  - DHT
  - PeX
  - Local Peer Discovery

In all cases i got the message after qbittorrent is started.
I didn't notice any problem besides the message, and it only
happend at start, if i change some bittorrent parameter to force a
reconnection without restarting qbittorrent the message is not
shown.

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

Ok. I'll look into this tonight too. Thanks.

Changed in qbittorrent:
assignee: nobody → hydr0g3n
status: New → In Progress
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This looks like a bug in libtorrent. I forwarded the bug report to its author. Thank you for the report.

Changed in qbittorrent:
milestone: none → 1.1.0
status: In Progress → Triaged
Changed in libtorrent-rasterbar:
status: Unknown → New
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Note that this problem is probably not linked to UPnP or the router. This is a port binding error and not a port mapping one. Therefore, libtorrent reports that it is unable to open a port on your computer. This usually means that the port is already taken by another application.

Do you confirm that qBittorrent is actually working properly (i.e downloading) although you get this error on startup? Or do you have to save the program preferences again in order to make it operate properly? This will help identify the problem.

Revision history for this message
Pablo Castellazzi (pcastellazzi) wrote :

Christophe,

About the port being in use, that's not the case.

I only got the error when qbittorrent start, and im able to download files as expected
without any changes in the preferences.

Regards
Pablo

Revision history for this message
aggapuma (aggapuma) wrote :

Hi

I also getting this port binding problem until I re-enabled ipv6 support in my custom kernel (2.6.29.1)

When enabling ipv6 support in the kernel, I now get this:

20:49:23 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: 3381
20:49:23 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: 3381

Tested system: 2.6.29.1 / Debian Sid

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

This was fixed in qBittorrent v2.0.4.

Changed in qbittorrent:
importance: Undecided → Medium
status: Triaged → Fix Released
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.