• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: gethostname returns loginname on "Pather Server" version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: gethostname returns loginname on "Pather Server" version


  • Subject: RE: gethostname returns loginname on "Pather Server" version
  • From: Sanjay Arora <email@hidden>
  • Date: Fri, 6 Feb 2004 11:24:17 +0530

Well that means I would need to change my code for "Panther Server" version.
But we would still be interested to know why a standard API like
gethostname would behave differently on "Panther Server" and all other MacOS
versions.


Regards
Sanjay

-----Original Message-----
From: Quinn [mailto:email@hidden]
Sent: Thursday, February 05, 2004 7:54 PM
To: email@hidden
Subject: Re: gethostname returns loginname on Pather Server version


At 14:53 +0530 5/2/04, Sanjay Arora wrote:
> I need to get the host machine IP Address.
> Is there some thing I am missing?

You probably don't want to use gethostname for determining the
machine's IP address. There's a section of DTS Technote 1145 "Living
in a Dynamic TCP/IP Environment" that explains the various ways you
can get a list of the machine's current IP addresses and monitor
changes to that list.

<http://developer.apple.com/technotes/tn/tn1145.html#CallingAllIPs>

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: gethostname returns loginname on "Pather Server" version
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: gethostname returns loginname on Pather Server version
  • Next by Date: Re: gethostname returns loginname on "Pather Server" version
  • Previous by thread: Re: gethostname returns loginname on Pather Server version
  • Next by thread: Re: gethostname returns loginname on "Pather Server" version
  • Index(es):
    • Date
    • Thread