aMule Forum

English => aMule Help => Topic started by: aMuleJo on September 17, 2008, 02:59:43 PM

Title: servers.php?cmd=connect&ip=0&port=0 doesn't work
Post by: aMuleJo on September 17, 2008, 02:59:43 PM
Hello together,
I have a proplem :
this works: servers.php?cmd=connect&ip=170109777&port=4242
this not:      servers.php?cmd=connect&ip=0&port=0
Someone an idea?
Greeting from the home of CeBIT
jo
Title: Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
Post by: lfroen on September 17, 2008, 04:18:28 PM
There's 2 parameters here: "ip" and "port". First is decimal value of server IP address, second - port number.
I think you can guess now why ip=0&port=0 doesn't work.
Title: Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
Post by: wuischke on September 17, 2008, 04:29:06 PM
lfroen: In an earlier German post he wrote that this is supposed to connect to any server. I don't know if we have such a function in amuleweb, do you know?
Title: Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
Post by: lfroen on September 18, 2008, 07:14:45 AM
lfroen: In an earlier German post he wrote that this is supposed to connect to any server.
I don't know where he's got this idea, but anyway, in WebServer.cpp code looks like this:
Code: [Select]
        if ( ec_cmd && ip ) {
                ec_cmd->AddTag(CECTag(EC_TAG_SERVER, EC_IPv4_t(ip, port)));
                Send_Discard_V2_Request(ec_cmd);

As you can see, if one of them =0, no request is sent.
Title: Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
Post by: aMuleJo on September 18, 2008, 03:19:08 PM
Thanks for answering,
I have got this idea from the debian amule packages (2.1.3-1), it contains a skin called chicane! On page server.php  is a button called "connect to any server". Pushing this button the code  servers.php?cmd=connect&ip=0&port=0  is sent. Have a look to the attachment.

If this code is part an official package, I thought it must work.

Program code in C++ is not my word!

Greetings from Hannover
Jo

Sorry but English is not my native language and I am not in training!