Re: gethostname returns loginname on Pather Server version
Re: gethostname returns loginname on Pather Server version
- Subject: Re: gethostname returns loginname on Pather Server version
- From: Quinn <email@hidden>
- Date: Thu, 5 Feb 2004 14:24:22 +0000
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.