Re: Is there anyway to list out all the hosts on LAN?
Re: Is there anyway to list out all the hosts on LAN?
- Subject: Re: Is there anyway to list out all the hosts on LAN?
- From: Thomas Tempelmann <email@hidden>
- Date: Mon, 12 Nov 2007 09:45:07 +0000
- Thread-topic: Is there anyway to list out all the hosts on LAN?
>> Hi all,
>> Is there any API can help to list out all the hosts on the LAN? I mean to get
>> the similar result just as when you clicking the ³Network² item on Finder.
>
> for afp devices (i.e. "Macs") this is relatively simple: Just use Rendezvous,
> http://developer.apple.com/documentation/Networking/Conceptual/NSNetServicePro
> gGuide/Articles/BrowsingForServices.html
I don't think that works any more for all cases. Macs used to _always_
advertise themselves via Rendezvous, but that has been changed by Apple
lately as it was considered a privacy issue. So, with current OS versions,
the Mac will only appear via Zerolink (Rendezvous) if the user has activated
some service that wants to make itself known.
Meaning that you cannot detect a Mac via Rendezvous if it's a clean install
without any Sharing services enabled.
So, if a Program on a Mac wants to find all other Macs, the users of those
Macs have to enable some Sharing first, or install another app that provides
a new Rendezvous service.
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden