• 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: How do I find the device's Bonjour hostname?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I find the device's Bonjour hostname?


  • Subject: Re: How do I find the device's Bonjour hostname?
  • From: Carl Hoefs <email@hidden>
  • Date: Tue, 20 Dec 2016 13:20:18 -0700

On Dec 20, 2016, at 12:11 PM, Jens Alfke <email@hidden> wrote:
>
>> On Dec 20, 2016, at 9:56 AM, Quinn The Eskimo! <email@hidden> wrote:
>>
>>> What’s the programmatic way to determine the localhost’s Bonjour hostname … ?
>>
>> SCDynamicStoreCopyLocalHostName
>
> It looks as though this just returns the first component of the name, which needs to have “.local” appended; is this correct?

I'm not sure what you mean by "Bonjour hostname", but in iOS apps using Bonjour calling CNCopyCurrentNetworkInfo(CNCopySupportedInterfaces()) & friends will obtain the SSID of the connected network, if that's what you're looking for.

-Carl



 _______________________________________________
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


References: 
 >How do I find the device's Bonjour hostname? (From: Jens Alfke <email@hidden>)
 >Re: How do I find the device's Bonjour hostname? (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: How do I find the device's Bonjour hostname? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: How do I find the device's Bonjour hostname?
  • Next by Date: Re: How do I find the device's Bonjour hostname?
  • Previous by thread: Re: How do I find the device's Bonjour hostname?
  • Next by thread: Re: How do I find the device's Bonjour hostname?
  • Index(es):
    • Date
    • Thread