• 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
Questions about NSNetService
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about NSNetService


  • Subject: Questions about NSNetService
  • From: Rick Mann <email@hidden>
  • Date: Wed, 24 Sep 2014 02:34:38 -0700

I'm a little confused about the information contained in NSNetService when my delegate -netServiceDidResolveAddress: gets called. On the one hand, the NSNetService has a nice host and port, and those are correct (I have a little embedded device advertising using Avahi).

But the list of addresses provided in the NSNetService.addresses is confusing:

2014-09-24 02:26:56.408 Balloon[1999:1574050] <AppDelegate.m: 141>:   Hostname: balloon.local.
2014-09-24 02:26:56.410 Balloon[1999:1574050] <AppDelegate.m: 142>:   Port:     2002
2014-09-24 02:26:56.412 Balloon[1999:1574050] <AppDelegate.m: 143>:   2 addresses
2014-09-24 02:26:56.413 Balloon[1999:1574050] <AppDelegate.m: 149>: Address: 192.168.15.59, port 53767
2014-09-24 02:26:56.417 Balloon[1999:1574050] <AppDelegate.m: 149>: Address: 0.0.0.0, port 53767

In my setup, my Mac is connected to my house LAN (192.168.15/24), and the AirPort is connected to my embedded device's ad-hoc network (10.77.80/24). Pinging balloon.local gives me the device's IP address (10.77.80.1).

But the ports in the addresses property are wrong, and one address is right (on the device's LAN interface), but the other address is all zeros. What gives?

Thanks!

--
Rick Mann
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


  • Follow-Ups:
    • Re: Questions about NSNetService
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: OS X 10.9.4 and Socket Filters
  • Next by Date: Re: Questions about NSNetService
  • Previous by thread: OS X 10.9.4 and Socket Filters
  • Next by thread: Re: Questions about NSNetService
  • Index(es):
    • Date
    • Thread