aMule Forum
English => aMule Help => Topic started by: Filya on January 08, 2006, 12:31:05 PM
-
Hello,
it happened so, I can open only one port number, for both UDP and TCP. Kademlia needs a shifted UDP port, so my question is: can this shift be zero, or it must be nonzero by any means?
For me, it does not make sense, that these ports must have different numbers, since one is TCP and other is UDP. Maybe its some workaround for buggy TCP/IP implementations or even more buggy clients?
-
There is one UDP port that must be shifted (TCP + 3), but that's for communicating with servers. Kad uses the client UDP port, which you can configure. There's no reason (that I'm aware of) that this can't be the same port number as the TCP port. The only thing it can't be is the same as the other UDP port.
-
Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?
-
Originally posted by Filya
Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?
What are you talking about? There's no need to patch anything or compile it differently. Just change the UDP port in the preferences. Kademlia just uses the same client UDP port as used for extended eMule.
-
Originally posted by ken
Originally posted by Filya
Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?
What are you talking about? There's no need to patch anything or compile it differently. Just change the UDP port in the preferences. Kademlia just uses the same client UDP port as used for extended eMule.
Well, then Kademlia uses TWO ports? When I set a TCP port, preferences widget shows automatically added +3 number and says it is Kademlia UDP. Am I totally wrong?
-
you are wrong, it never says is Kademlia UDP.
-
Any chance there's a translation error?
-
Well is called "UDP port for extended server requests (TCP+3)" here, so it would be a hell of a translation error.
-
Sorry, I am an idiot. I just saw it wrong, and after I had not chance to look at that widget again.
However, Kad does not work, despite the port is set to open one...
-
Explain "Kad does not work" in more detail. What specifically is happening or not happening? What log messages are displayed? What things have you tried to get it to work?
-
Originally posted by ken
Explain "Kad does not work" in more detail. What specifically is happening or not happening? What log messages are displayed? What things have you tried to get it to work?
Firstly, I just started aMule without any additions to config dir, and after several hours of running pushed "Bootstrap from known clients" button. 10 Kad contacts appeared in statusline, and Kademlia status was "Running" and "Disconnected". Then, in about 20-30 minutes Kademlia status became "Off".
Then, I downloaded nodes.dat file and put it to aMule dir. Closed amule and started it again. Then pushed same button, and statusline displayed 374 kontacts. Graph of node-number was a straight line at level 10. A peak appeared there, and it was seen how number of contacts decays to 10 (possibly, it just cannot be lower) and Kademlia status became "Off" in about two hours. I have checked that UDP port is really open, and I surely have HighID.