aMule Forum

English => Feature requests => Topic started by: ponchietto on December 11, 2004, 04:47:57 AM

Title: Mode freedom in port selection
Post by: ponchietto on December 11, 2004, 04:47:57 AM
I would really like to use port 22 instead of the standard ones. (Firewall issues... sigh).

Currently the GUI refuses you to do so... i think a warning would be more appropriate.

 Thanx
              Federico
Title: Re: Mode freedom in port selection
Post by: deltaHF on December 11, 2004, 04:50:04 AM
it works.. as root (port => 80)
Title: Re: Mode freedom in port selection
Post by: ponchietto on December 11, 2004, 05:02:40 AM
Maybe you didn't read... i said port  --> 22 <---        (the one used by ssh...).

Of course must be root to use it, but i can afford that :P

   Federico
Title: Re: Mode freedom in port selection
Post by: deltaHF on December 11, 2004, 05:05:22 AM
isn't 80 enough? ;p
Title: Re: Mode freedom in port selection
Post by: ponchietto on December 11, 2004, 05:14:51 AM
My sysadmins do allow incoming connections only on port 22 (ssh).
So i will get a lowid UNLESS i use port 22.

So no... 80 is not enough.
Title: Re: Mode freedom in port selection
Post by: Jacobo221 on December 11, 2004, 02:50:18 PM
maybe this port limitation is a server or lugdunum limitation?
Title: Re: Mode freedom in port selection
Post by: ponchietto on December 11, 2004, 05:23:58 PM
No, its only a GUI limitation:

if i start lmule, set port to 22 close it and start amule, port 22 works perfectly...
only i cannot use the preferences dialog otherwise port get resetted to 80...
Title: Re: Mode freedom in port selection
Post by: Frankk on December 11, 2004, 05:31:29 PM
Edit   src/muuli_wdr.cpp

Change this line:
Code: [Select]
wxSpinCtrl *item33 = new wxSpinCtrl( parent, IDC_PORT, wxT("4662"), wxDefaultPosition, wxSize(100,-1), 0, 80, 65535, 4662 );to:
Code: [Select]
wxSpinCtrl *item33 = new wxSpinCtrl( parent, IDC_PORT, wxT("4662"), wxDefaultPosition, wxSize(100,-1), 0, 22, 65535, 4662 );
and this line:
Code: [Select]
wxSpinCtrl *item36 = new wxSpinCtrl( parent, IDC_UDPPORT, wxT("4672"), wxDefaultPosition, wxSize(100,-1), 0, 1025, 65535, 4672 );to:
Code: [Select]
wxSpinCtrl *item36 = new wxSpinCtrl( parent, IDC_UDPPORT, wxT("4672"), wxDefaultPosition, wxSize(100,-1), 0, 22, 65535, 4672 );

Obviously you have to recompile.
Title: Re: Mode freedom in port selection
Post by: ponchietto on December 11, 2004, 08:16:42 PM
Thats a nice suggestion... thank you.

   Federico
Title: Re: Mode freedom in port selection
Post by: Jacobo221 on December 11, 2004, 09:02:38 PM
if there is no protocol or server limitation, will be removed _after_ rc8 release ;)

for now, Frankk's patch will work for you (you can even change it down to 0 instead of 22 only, there's no risk. the only risk is your firewall :P)

Thanks both!