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: Alexander von Below <email@hidden>
- Date: Mon, 12 Nov 2007 10:50:16 +0100
Hello Thomas,
you are correct, but I believe the Finder also uses Bonjour -- i.e. if
no services are advertised, the machine does not appear.
If the original poster is looking for machines that have no services
advertised, that is a different story -- and some machines may even be
cloaked.
Alex
Am 12.11.2007 um 10:45 schrieb Thomas Tempelmann:
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
_______________________________________________
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