Page 1 of 1

Choose random ports on first run

PostPosted: 19 Sep 2009 17:27
by old_death
Shareaza should be able to choose random ports from within the startup wizard, before the page with the UPnP router config.

The 4 options that could be included are:

* choose random port from 1024 - 49151 (default) [use the .dat file I attached to this post in order to filter out already registered ones etc.]
* choose port from 49152 - 65535
* choose port manually
* use port 6346

UsedPorts.7z
(1.28 KiB) Downloaded 139 times

Re: Choose random ports on first run

PostPosted: 19 Sep 2009 22:17
by wiggindesigns
How about including an option(I believe uTorrent has it) to randomize port on each startup?

Re: Choose random ports on first run

PostPosted: 19 Sep 2009 23:18
by cyko_01

Re: Choose random ports on first run

PostPosted: 20 Sep 2009 00:13
by old_death
This will not work for lots of people, as there are still much modem/router devices with turned off UPnP or even without the feature... or devices incompatible with Shareaza, that's why I proposed to use an UPnP library instead of our own code...

Re: Choose random ports on first run

PostPosted: 24 Sep 2009 13:39
by diztrancer
The very rightful scenario :) : Shareaza tries to use uPnP - if this fail - Shareaza suggest user to select either default port (6346), random port or if user know his modem/router configuration - manual port. All this must be on one dialog. Also in this dialog must be link to how-to about port-forwarding/NAT.


P.S. For someone Shareaza's uPnP work always, for someone(like me) -50/50, for someone - don't work at all. This is bit strange because eDonkey2000 uPnP (from year 2004?) work always - tried it with 9 routers (yes i have many network devices at home - around 20 different routers, many managed 24port switches, tons of WiFi and so on). Not to mention uTorrent.

Re: Choose random ports on first run

PostPosted: 24 Sep 2009 17:14
by ocexyz
Randomizing port... and that randomized port could be auto-portforwarded... Some dreams can become true...
"I would buy it for a dollar" - from Robocop
If that would work even for some users I think they would be delighted. Diz could could buy +4 routers and use diferent device every hour.... 8-)
+1

Existing Fork Behavior

PostPosted: 24 Sep 2009 18:30
by skinvista
FYI, Wizard port selection had been implemented in a Shareaza project fork.

Focus on simple. Enables Random to encourage uPnP. Currently ranges full 1030-65530, but any particularly common conflicts could be hardcoded. .Dat list is another matter.
...Per-session random must not be default, because it makes re-finding friends/family more difficult. And default port should remain 6346, otherwise anyone who has previously port-forwarded (or blindly in the future) will find reduced performance without realizing why. Simply prompting people to choose a personal number upfront should suffice.