This forum has been archived. All content is frozen. Please use KDE Discuss instead.

DHT failed to bind

Tags: None
(comma "," separated)
vadoalmax
Registered Member
Posts
7
Karma
0

DHT failed to bind

Sat Oct 03, 2009 12:22 pm
In ktorrent's log i see this lines:

Code: Select all
cat log|grep DHT
sab ott 3 14:16:51 2009: DHT: Starting on port 6885
sab ott 3 14:16:51 2009: DHT: Failed to bind to 0:0:0:0:0:0:0:0:6885
sab ott 3 14:16:51 2009: DHT: Failed to bind to 0.0.0.0:6885


Dht don't work for me, any tips?

(Excuse me for my bad English, i'm italian)
George
Moderator
Posts
5421
Karma
1

Re: DHT failed to bind

Sat Oct 03, 2009 3:46 pm
Try another DHT port, not being able to bind usually means something else is listening on that port.
vadoalmax
Registered Member
Posts
7
Karma
0

Re: DHT failed to bind

Sun Oct 04, 2009 7:54 am
I've already tried this.
Now i have dht and torrent on port 6885 and udp on port 4445. I've tried to move dht on port 6895 (free) but nothing has changed.
I've a us robotics wifi router with firewall activated, i've setted 6885, 4445 and 6895 ports as virtual server, but still have the same log message and zero nodes.
The firewall on my Mandriva is disabled.
George
Moderator
Posts
5421
Karma
1

Re: DHT failed to bind

Mon Oct 05, 2009 4:15 pm
Binding is a local operation, has nothing to do with your router. Something has got to be blocking it, are you really sure your firewall is disabled ?
vadoalmax
Registered Member
Posts
7
Karma
0

Re: DHT failed to bind

Mon Oct 05, 2009 8:00 pm
Yes, i've tried with all firewall (mandriva and router) disabled, but i still have the same error.
I've also tried another torrent client, "qbittorrent", with the same port, and DHT works without problems.
George
Moderator
Posts
5421
Karma
1

Re: DHT failed to bind

Tue Oct 06, 2009 4:33 pm
Run this command when you get the problem :

netstat -lupn

If something is using that port, it should show up in the output of netstat.
vadoalmax
Registered Member
Posts
7
Karma
0

Re: DHT failed to bind

Tue Oct 06, 2009 4:36 pm
I've tried this command, and that port is not used
George
Moderator
Posts
5421
Karma
1

Re: DHT failed to bind

Wed Oct 07, 2009 6:51 pm
Then I have no idea why the bind fails. What happens if you select the interface to bind on ? (In the network settings, it requires a reboot to take effect)
microchip
Registered Member
Posts
59
Karma
0
OS

Re: DHT failed to bind

Wed Oct 07, 2009 7:02 pm
Same thing here

Wed Oct 7 18:59:31 2009: DHT: Starting on port 6881
Wed Oct 7 18:59:31 2009: DHT: Failed to bind to 0:0:0:0:0:0:0:0:6881
Wed Oct 7 18:59:31 2009: DHT: Failed to bind to 0.0.0.0:6881
Wed Oct 7 19:23:37 2009: DHT: Stopping
Wed Oct 7 20:52:01 2009: DHT: Starting on port 6881
Wed Oct 7 20:52:01 2009: DHT: Failed to bind to 0:0:0:0:0:0:0:0:6881
Wed Oct 7 20:52:01 2009: DHT: Failed to bind to 0.0.0.0:6881


port 6881 is not blocked by anything
vadoalmax
Registered Member
Posts
7
Karma
0

Re: DHT failed to bind

Wed Oct 07, 2009 8:41 pm
George wrote:Then I have no idea why the bind fails. What happens if you select the interface to bind on ? (In the network settings, it requires a reboot to take effect)


In this setting i have "all interfaces" because sometime i use wlan and sometime ethernet.
I've setted interface to "wlan0"... well, now dht works well!!!
microchip
Registered Member
Posts
59
Karma
0
OS

Re: DHT failed to bind

Thu Oct 08, 2009 3:07 pm
Yep, setting listening to eth0 here also fixes the DHT problem
George
Moderator
Posts
5421
Karma
1

Re: DHT failed to bind

Thu Oct 08, 2009 4:20 pm
That is good, but binding on all interfaces should work.
vadoalmax
Registered Member
Posts
7
Karma
0

Re: DHT failed to bind

Thu Oct 08, 2009 4:22 pm
Yes, it should work, but don't


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft