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

unable to open ktorrent udp ports

Tags: None
(comma "," separated)
Guest1234
Registered Member
Posts
3
Karma
0

unable to open ktorrent udp ports

Fri May 04, 2007 6:21 pm
Hi I'm having slow downloads(about 5KB/sec on well seeded torrents) and I suspect it's because my udp ports are not opened.

I'm using UDP Tracker port: 4446
and DHT port: 4445

The thing is I configured the SuSeFirewall2 to open them(I'm using openSuSe 10.2).

I've also issued the iptables command in case the SuSeFirewall doesn't open them, in the following way:

Code: Select all
sudo iptables -A INPUT -p udp --dport 4446 -j ACCEPT

and:
Code: Select all
sudo iptables -A INPUT -p udp --dport 4445 -j ACCEPT


After running ktorrent I type the nmap command in the shell:
Code: Select all
sudo nmap -v -sU -p 4446 localhost

I get the following output:
Code: Select all
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-05-04 21:14 IDT
Initiating UDP Scan against localhost (127.0.0.1) [1 port] at 21:14
The UDP Scan took 0.02s to scan 1 total ports.
Host localhost (127.0.0.1) appears to be up ... good.
Interesting ports on localhost (127.0.0.1):
PORT     STATE  SERVICE
4446/udp closed unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.045 seconds
               Raw packets sent: 1 (28B) | Rcvd: 2 (84B)


When I check my tcp port(I'm using 50000 for ktorrent) and type:
Code: Select all
sudo nmap -v -p 50000 localhost


It tells me that the port is open with the service: "iiimsf"(not sure what is)

What am I doing wrong?
I tried to open the ports using the suseFirewall and iptables but nmap still tells me that the port is closed
George
Moderator
Posts
5421
Karma
1

Sun May 06, 2007 5:51 pm
Version ?

And the UDP ports should have no impact on download speeds.
Guest1234
Registered Member
Posts
3
Karma
0

Sun May 06, 2007 7:38 pm
I'm using the latest version of ktorrent: 2.1.4

Regarding the udp ports, what is their purpose?
To get more peers?

Well this my configuration of ktorrent:
Code: Select all
Download options:
-----------------------
maximum downloads: 1
maximum seeds: 1
maximum connections per torrent: 0
global connection limit: 0
maximum upload rate: 10(I have only 128 kbit of upload)
maximum download rate: 0
port: 50000
udp tracker port: 4446
number of upload slots: 20
max share ratio: 0.0

General options:
---------------------
Download bandwidth: 180 KB/sec
Upload bandwidth: 10 KB/sec

Advanced options:
------------------------
Memory usage: low
Type of service field of IP packets: 8

Loaded plugins:
--------------------
infowidgetplugin
searchplugin


That's pretty much I'm it.
Also I'm sure it's not a problem with my connection to the internet
since in regular downloads I download as high of 180-190 KB/sec

Before I switched to linux I had mTorrent(mu torrent) and I had rather fast download speeds(about an average of 70 KB/sec)

Do you know what am I doing wrong?

Thanks in advance
George
Moderator
Posts
5421
Karma
1

Mon May 07, 2007 6:38 pm
Cut down the number of download slots, it makes no sense to have 20 with a bandwith of 10 KB/s.

3 or 4 should be more then enough.

I also would run with connection limits, running without them is not really that safe and usually more connections do not mean higher download speeds, 50 per torrent should be enough.

The UDP tracker port is used when the torrent contains an udp tracker URL, these are very rare.
Guest1234
Registered Member
Posts
3
Karma
0

Wed May 09, 2007 8:23 pm
I put the limits you said on the download slots and on the connections,
but the speed didn't improve.

As I said before, my download speed at regular site is normal
(it sometimes reaches 180 KB/sec) and my upload speed in ktorrent is also normal : 10 KB/sec(I'm not talking about the limit in the configuration but the upload speed I see during actual torrents).

Do you have any idea what can cause downloads of well-seeded
torrents to be so slow(an average of 5 KB/sec)?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]