aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: servers.php?cmd=connect&ip=0&port=0 doesn't work  (Read 6448 times)

aMuleJo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
servers.php?cmd=connect&ip=0&port=0 doesn't work
« 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
Logged

lfroen

  • Guest
Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
« Reply #1 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.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
« Reply #2 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?
Logged

lfroen

  • Guest
Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
« Reply #3 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.
Logged

aMuleJo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: servers.php?cmd=connect&ip=0&port=0 doesn't work
« Reply #4 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!
« Last Edit: September 18, 2008, 06:41:36 PM by aMuleJo »
Logged