aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Fixing the serverproblem in aMule (cant get offical hostname...)  (Read 20949 times)

digitally drunken

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5

Hey there:
for all, who have problems with amule, because it cant connect:
(cant find official-hostname... / error 22)

Here is the way to fix it:


1. starting the application "Terminal"
2. by type "hostname" you can find out, whats your hostname
3. type "sudo pico hostconfig" (opens hostconfig)
4. you have to type your password eventually
5. change the line "HOSTNAME=-AUTOMATIC-" to "HOSTNAME=myname" (if this line isnt already there, just write it...)
6. save (Ctrl-O) and close (Ctrl-X)

7. starting the application "NetInfo Manager"
8. go to "machines"
9. go to "localhost"
10. make shure, that this window is not locked (in the left bottom)
11. type "apple-D" for duplicating the "localhost"-entry
12. klick on the "localhost copy" entry
13. then choose the value for the field 'name'
14. here you have to type in the name that you have choosen in the "hostconfig" (in this example: "myname")
15. restart... and it wil work!

after this, amule is working pretty well and your hostname is not automatic given by your router, etc...

it is working pretty well at my computer (but i wont to give a garuantee for it)

and i hope, ich could help some people with this thread

good luck
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #1 on: April 13, 2006, 06:45:20 AM »

I'm a little confused. I thought the "can't find official hostname" message was benign and could be safely ignored. But now you are saying that the message is accompanied by actual problems with connecting to clients/servers?

If that's really the case we should definitively try to find a solution that does not require a workaround using the Terminal.

Thanks by the way, for figuring this out. :)
Logged
Current aMule CVS builds for OS X can be found here.

digitally drunken

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #2 on: April 13, 2006, 10:00:54 AM »

Yes, cause many people have this problem I think.
I, for example needed a lot of time to find this error! And especially since version 2.1.1 (where the error-message for the error 22 is disabled...) it ist a way harder to find the roots of the problem, your amule isnt connecting to any server. (I found a lot of people in different boards, all having the same problem)
But since this configuration everything is working fine!
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #3 on: April 13, 2006, 06:12:48 PM »

Thanks a lot for the explanation. Looks like we definitively need to do something about this.

/me rubs his ken summoning lamp...
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #4 on: April 16, 2006, 07:32:32 PM »

Hmm.   I thought it was benign.  Unfortunately, I don't really have time to devote to figuring this out.

/me strikes his Kry-summoning gong
Logged

mindreaper

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #5 on: April 17, 2006, 12:36:02 PM »

I've done everything just like you mention, and I still get the same error message (cannot get the official hostname. Error 22: invalid argument)

First I've looked for my hostname, which is telenetPC.
In the "hostconfig" window of terminal, I have typed HOSTNAME=telenetPC
And now everytime I open that window, it does say HOSTNAME=telenetPC

I've also done what you said in NetInfo Manager, and now in the list of machines I have one that appears under the name telenetPC.

So have I done anything wrong?
Logged

verdun1916

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
RE: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #6 on: July 25, 2006, 07:53:27 PM »

Great work! Thank you sooo much! I searched so long, why aMule won't connect, I was getting crazy. With your help the Problem is fixed now! Thanks a lot!!!
Logged
Dem Manne der die Geige baut, dankt allein der Klang! (Friedrich II. von Preußen)

mouloud

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #7 on: August 01, 2006, 03:37:57 PM »

works fine for me (Mac OS 10.4.6 - amule 2.1.3) thanks !
Logged

obis

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Simpler
« Reply #8 on: September 07, 2006, 05:01:01 AM »

First off, for those who don't know, hostconfig is a file in /etc.

Second, you can do this in a more straightforward way (I think) by just:

1) Edit the /etc/hostconfig file. Look for the line starting with HOSTNAME and change it to HOSTNAME=mymac
You'll probably have to add the HOSTNAME line

2) Edit the /etc/hosts file. The first line should be "127.0.0.1 localhost". Add the same hostname you used above to the end of this line, "127.0.0.1 localhost mymac".

And finally, WTF? Why did the aMule developers suddenly stop respecting the hostname set by the system and require it to be set this way?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #9 on: September 07, 2006, 08:52:17 AM »

Quote
And finally, WTF? Why did the aMule developers suddenly stop respecting the hostname set by the system and require it to be set this way?
*peep*
Visit wxwindows.org and blame them. ;)
Logged

BlackLeopard

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
RE: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #10 on: September 16, 2006, 06:55:44 PM »

I am trying to do what you are saying but nothing happens.  Is there another way to do it?
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #11 on: September 21, 2006, 03:31:01 AM »

Quote
Originally posted by ken
/me strikes his Kry-summoning gong
I am starting to suspect that my ken-summoning lamb works better than your kry-summoning gong...
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #12 on: September 24, 2006, 04:51:16 PM »

If you're rubbing a lamb, well, that's just...  wrong.  :P
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #13 on: October 03, 2006, 01:31:23 PM »

lol

Well...moving on...

I hope that we can get Kry interested in this issue once his moving situation is worked out, as there seem to be quite a number of users affected by it.
Logged
Current aMule CVS builds for OS X can be found here.

jochen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Fixing the serverproblem in aMule (cant get offical hostname...)
« Reply #14 on: October 14, 2006, 12:56:05 PM »

I found that this problem (can't connect to any server) appears when I assign a static IP and hostname via DHCP (static DHCP on my router). If I leave the hostname field on the router empty, amule works as normal.

Edit: it also works if you use a hostname with suffix ".local" in static DHCP hostnames.
« Last Edit: October 16, 2006, 08:10:18 AM by jochen »
Logged
Pages: [1] 2