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: "cannot find hostname"  (Read 16139 times)

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: "cannot find hostname"
« Reply #15 on: January 07, 2006, 05:21:54 AM »

First of all, a computer doesn't have a single IP.  It may have many.  Second, as demonstrated by this thread, a computer can have one or more IP addresses without having a hostname.  There's no good reason to expect or require a computer to have a hostname in order to use aMule.

Lastly, of the various methods for discovering (one of) the computer's IP address(es), looking up the hostname is a pretty poor choice.  Usually, the only recommended one is to look up the local socket address from a connection with another computer.  That gives you the IP address most appropriate for that peer.  Unfortunately, that gets all screwed up by NAT.

And that brings us to this fact: the only reliable way to tell somebody your IP address is not to.  It is never necessary to transmit your IP address over an IP protocol.  It's redundant.  All such communication already carries your IP address, and it's much more reliable than any mechanism we can use to try to figure out our own.  The peer should just get our IP address from the socket on which they received our message(s).
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: "cannot find hostname"
« Reply #16 on: January 07, 2006, 07:43:44 AM »

Wow, you're *so* going to rewrite the ed2k protocol... not.

There are checks to know our ip later than that, but I suggest you check the USAGE of the wxGetHostname. Which, btw, does fail NOWHERE but MacOS X, and then just some boxes.
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: "cannot find hostname"
« Reply #17 on: January 08, 2006, 07:23:21 PM »

Here is another person affected.

If we cant figure out a quick fix for this issue, would it be an option to temporarily go back to "the 2.0.3 way of determining the IP"? Or would this just cause more headaches?
Logged
Current aMule CVS builds for OS X can be found here.

Mace Windu

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: "cannot find hostname"
« Reply #18 on: January 10, 2006, 08:10:34 AM »

I'm a little bit confused.?(

Early this morning I didn't get the error message, without any (intentionally made) change on my system, just reboot.

Thanks!
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: "cannot find hostname"
« Reply #19 on: January 10, 2006, 08:26:45 AM »

http://forum.amule.org/thread.php?postid=48237&sid=#post48237

The message is now hidden.

EDIT: Maybe I should think before posting... You didn't upgrade to today's CVS, did you? If so, the message is hidden in today's CVS. If not, I don't know the reason.
« Last Edit: January 10, 2006, 08:28:53 AM by Gerd78 »
Logged

Mace Windu

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: "cannot find hostname"
« Reply #20 on: January 10, 2006, 02:08:38 PM »

;) No I didn't upgrade, but I will.

thanks
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: "cannot find hostname"
« Reply #21 on: January 11, 2006, 02:59:18 AM »

Rebooting might have made a difference because your Mac will have reacquired its network configuration information from your ISP (or local network) via DHCP.  It might now have a valid hostname.
Logged

jochen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: "cannot find hostname"
« Reply #22 on: October 16, 2006, 08:18:59 AM »

Quote
Originally posted by Kry
Wow, you're *so* going to rewrite the ed2k protocol... not.

There are checks to know our ip later than that, but I suggest you check the USAGE of the wxGetHostname. Which, btw, does fail NOWHERE but MacOS X, and then just some boxes.
How do you explain that Edonkey2000 works with no problems on the same machine with the same configuration while amule fails? ?(
Logged

jochen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: "cannot find hostname"
« Reply #23 on: October 17, 2006, 10:56:01 AM »

Quote
Originally posted by Kry
Why not? It's ok. That's the way we get the ip. Better ideas? :P
For which purpose do you need this IP? If the Mac sits behind a NAT router (which is the normal case at home) you will only get it's internal IP on the LAN. This will help you nothing if you are communicating with the outside.
Logged
Pages: 1 [2]