Choose random ports on first run

Discuss Shareaza features.
Forum rules
Home | Wiki | Rules

Choose random ports on first run

Postby old_death » 19 Sep 2009 17:27

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 138 times
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Choose random ports on first run

Postby wiggindesigns » 19 Sep 2009 22:17

How about including an option(I believe uTorrent has it) to randomize port on each startup?
wiggindesigns
 
Posts: 46
Joined: 04 Aug 2009 04:17

Re: Choose random ports on first run

Postby cyko_01 » 19 Sep 2009 23:18

User avatar
cyko_01
 
Posts: 938
Joined: 13 Jun 2009 15:51

Re: Choose random ports on first run

Postby old_death » 20 Sep 2009 00:13

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...
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Choose random ports on first run

Postby diztrancer » 24 Sep 2009 13:39

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.
User avatar
diztrancer
 
Posts: 222
Joined: 13 Jun 2009 15:41
Location: Ukraine

Re: Choose random ports on first run

Postby ocexyz » 24 Sep 2009 17:14

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
User avatar
ocexyz
 
Posts: 624
Joined: 15 Jun 2009 13:09

Existing Fork Behavior

Postby skinvista » 24 Sep 2009 18:30

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.
Attachments
WizardPorts.gif
User avatar
skinvista
 
Posts: 74
Joined: 13 Jun 2009 16:34
Location: Boston/NewYorkCity


Return to Features

Who is online

Users browsing this forum: No registered users and 0 guests

cron