aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Connecting to amule from another computer using amulecmd  (Read 6108 times)

Urbanus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Connecting to amule from another computer using amulecmd
« on: January 25, 2004, 08:52:46 PM »

Hi,

I just replaced my xmule with amule and do like it a lot (although the cpu usage is a little bit higher). One feature I really like is the remote control via amulecmd. Unfortunately the documentation seems to be improvable ;-)

I jsut tried to connect to the computer running amule from another pc using amulecmd (Debian unstable) and it doesn't work. I searched for some options to activate connections to amule but I didn't found anything?!

Does somebody know which options I have to enable so that connecting from another machine works?
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Connecting to amule from another computer using amulecmd
« Reply #1 on: January 25, 2004, 09:02:03 PM »

Quote
deltaHF@deltahf:~/file/amule-cvs/src> ./amulecmd

This is amulecmd (TextClient)

Enter password for mule connection (return if no pass defined):

Creating client...
Now, doing connection....
Using host localhost port /home/deltaHF/.aMule/muleconn

---------------------------------
|       aMule text client       |
---------------------------------


Use 'Help' for command list


aMule$ help

->Help: Avalaible commands :

Quit: Exits Textclient.                                 Syns: quit, Exit, exit
Help: Shows this help.                                  Syns: help
Stats: Shows statistics.                                Syns: stats
Show DL: Shows Download queue
Resume n: Resume file number n.                         Syns: resume
Pause n: Pauses file number n.                          Syns: pause
ServerStatus: Tell us if connected/not connected.       Syns: serverstatus
Connect: Tries to connect to any server.                Syns: connect
        WARNING: Doesn't warn if failed
.Disconnect: Disconnect from server.                    Syns: disconnect

->End of listing

aMule$ stats
Statistics:
 Downloading files: 2
 Found sources: 588
 Active downloads: 3
 Active Uploads: 8
 Users on upload queue: 793

aMule$

i hope it w'll help you ;)

..and u can try webserver too (actually, it works in cvs only)

greets

Urbanus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Connecting to amule from another computer using amulecmd
« Reply #2 on: January 25, 2004, 09:14:17 PM »

Mmh, think I wasn't clear enough :rolleyes:. Connecting with amule from the machine that runs amule is working. But if I try to connect from another machine on my local network I get the following error:
Quote
cpblu01@beutelsend:~/.aMule$ amulecmd --remote-host=minasmorgul --port=4713

This is amulecmd (TextClient)

Enter password for mule connection (return if no pass defined):

Creating client...
Now, doing connection....
Using host minasmorgul port 4713
aMule is not running, not accepting connections or wrong password supplied
cpblu01@beutelsend:~/.aMule$
If I try it with amulecmdDLG I get the same error.
So far there seems to be no password (does it work the same way as for the webserver?). Now the following questions:
  • is the feature to connect from another machine already implemented?
  • if yes, do I have to twak the config file so that it works (like for the webserver)?
Thanks for answers of any kind!
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Connecting to amule from another computer using amulecmd
« Reply #3 on: January 25, 2004, 09:18:59 PM »

for webserver see my sig (and don't forget to compile cvs for it)..

well, i dunno how to use amulecmd from remote machine cos i never needed it.. sorry  :(
i guess u'll have to wait for Kry ..

Urbanus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Connecting to amule from another computer using amulecmd
« Reply #4 on: January 25, 2004, 09:22:17 PM »

OK, thanks so far. Especially for the very fast response! Webserver takes too much resources on my little machine (P1 MMX@166), so I am more interested in the command line version :P
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connecting to amule from another computer using amulecmd
« Reply #5 on: January 29, 2004, 11:49:11 PM »

on .eMule

[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=1
ECPort=whatever port you want
ECPassword=whateveryoumakeusingmd5sum
Logged

Urbanus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Connecting to amule from another computer using amulecmd
« Reply #6 on: January 29, 2004, 11:55:22 PM »

Thanks, that helped a lot!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connecting to amule from another computer using amulecmd
« Reply #7 on: January 30, 2004, 12:05:11 AM »

We're here for help :)
Logged

Zombie025

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Connecting to amule from another computer using amulecmd
« Reply #8 on: April 04, 2004, 01:08:53 AM »

Hi there,

may I also ask a question about amulecmd(DLG)
Amule is running on another pc in my network.
When trying to connect the following error occurs:
using host 192.168.0.1 (my internal IP) port 4712
aMule is not running...

The .emule-File contains the following section:
[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=0
ECPort=4712
ECPassword=
DlgTabsOnTop=0
IpFilterOn=1
UseSrcSeeds=0
ShowProgressBar=1
ShowPercent=0
ExtractMetaDataTags=0
UseSecIdent=1
what do i have to change that amulecmd is running? (btw: the network is doing fine, th ip's are correct)
Thanks a lot

greetings
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connecting to amule from another computer using amulecmd
« Reply #9 on: April 04, 2004, 01:15:12 AM »

ECUseTCPPort=0

:P
Logged

Zombie025

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Connecting to amule from another computer using amulecmd
« Reply #10 on: April 04, 2004, 11:01:13 AM »

that could be the shortest answer i've ever received :D but I couldn't really handle it...
When I try to connect with port 0, amulecmdDLG freezes (or wasn't I patient enopugh?)
I tried to set this port on 1, but also there was no connection available.
At time I'm using a quickanddirty-solution: setting up an ssh-Konsole ans starting amulecmd, that works. but the graphic interface is also not working.
I#ve got another idea how to use amule from the remote computer, but I don't now how to (linux-newbie :)) )
It is possible to start amule with an x11-forwarding, but it is alos possible, to start amule without forwarding and, when i want to change anything, bring it on the remote x11-display? The background is to use the "main" pc for everything, especialy playing and for that I don't want to abort my downloads. Could someone give me a hint, how to do this? (or just give me the keywords to google for :])

bye
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connecting to amule from another computer using amulecmd
« Reply #11 on: April 04, 2004, 03:23:20 PM »

Quote
ECUseTCPPort=0
ECPort=4712

That was what I was pointing out.
 

You have ECUseTCPPort=0, and it should be 1 if you want to use the TCP port ;)


so set it to 1 and ECPort leave at 4712, and retry.
Logged

sleeper

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
connecting using some Windows machine
« Reply #12 on: April 05, 2004, 07:17:33 PM »

I hope this fits somehow into this thread ...

If I understand the previous posts correctly, there are 3 possibilities to connect to the machine running aMule:

* use VNC and let aMule run in a VNC-Session (this is the way I'm using it at the moment). This is pretty uncomfortable because VNC doesn't support Copy & Paste with Windows-clients (and it doesn't work so good with *nix clients too).
* use the web-interface (not my favourite, too)
* use amulecmd (I didn't try that yet)

What I want to achieve is a behaviour similar to eMule on Windows: I open a page in my browser and just click on the ed2k:// links. Then these links should be send to the aMule running on another machine in the local network.

The important thing is: This should work with windows browsers and with *nix browsers too, so one should implement it for Netscape/Mozilla.

I have seen this working with mldonkey via a mldonkey protocol handler for Mozilla.

I would very much like to put some work into that as I think it could be useful for many people; is there a short description of the commands available one must send to aMule to start a download like the amulecmd does?

Greetz,

sleeper
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connecting to amule from another computer using amulecmd
« Reply #13 on: April 05, 2004, 07:43:03 PM »

I swear EC documentation will exist.


Just wait, plese. or look at code or ask shakraw on #amule at irc.freenode.net
Logged

sleeper

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Connecting to amule from another computer using amulecmd
« Reply #14 on: April 05, 2004, 08:21:46 PM »

Quote
I swear EC documentation will exist.
:-) writing docs is a problem I just know too good...

could you point to the right direction where to look for the command list in the code (module/file) ?
Logged