Questions tagged [nsnetservicebrowser]

41 questions
2
votes
0 answers

Why I cannot call searchForBrowsableDomains and searchForServicesOfType in the same function?

I think the use of the Runloop is probably problematic. I am not sure if it is related to the problem I have below: Here is my code: import Foundation class Discover: NSObject, NSNetServiceBrowserDelegate { var browser:NSNetServiceBrowser; …
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
2
votes
1 answer

If NSNetService name method is deprecated in iOS 7.x, how do I find the name of the service?

The current documentation for NSNetService states that the 'name' is deprecated after iOS 6.1 Since that is the case, how do I find the name of a service which has been discovered with an NSNetServiceBrowser? NSNetServiceBrowser calls the delegate…
Kenny
  • 1,083
  • 2
  • 8
  • 23
2
votes
1 answer

Not able to view active servers through wifi and connect with it all the time by using Bonjour and NSNetServiceBrowserDelegate?

i am working on an App that uses wifi network to pass data from one ipad to another ipads . i have already referred the following sample code about: http://mobileorchard.com/tutorial-networking-and-bonjour-on-ip The above sample code connects…
ABHI
  • 306
  • 1
  • 3
  • 7
2
votes
2 answers

NSNetServiceBrowser does not find Service

I tried to write a Client(iPad)/Server(iMac) application based on the CocoaEcho example. My first simple example worked, but after adding more functionality the client is unable to find the server. After starting the server, I start the client, both…
2
votes
0 answers

NSNetServiceBrowser issues on iOS - not detecting all changes

I think this may be an iOS bug. I run the following simple code, to broadcast a net service: self.netService = [[NSNetService alloc] initWithDomain:@"local." type:@"_testnetwork._tcp." …
Andrew
  • 15,935
  • 28
  • 121
  • 203
2
votes
0 answers

Client not discovering bonjour service

I have just started learning to design iphone apps and I am trying to set up a client server environment. As a starter I would like to first make sure that the service I publish is visible to the client. I have written server and client codes wit…
1
vote
1 answer

Swift - NetServiceBrowser not working in TestFlight

I have this code to find some services on a local network. If i install the app in my iPad or use the simulator it will work fine, but if i use TestFlight i can´t find any of the services. Thanks for any help import Foundation class…
ClaytonAV
  • 95
  • 14
1
vote
0 answers

NSNetServiceBrowser not able to find Apple TV "occasionally"

I am using NSNetServiceBrowser to find NSNetService of Apple TV over bonjour connection. Now my code works almost every time. But every once in a while (1 out of 10 times) NSNetServiceBrowser is not able to find NSNetService of Apple TV or taking…
blancos
  • 1,576
  • 2
  • 16
  • 38
1
vote
0 answers

NSNetServiceBrowser to find any device on network

As per the title: I am wondering how IOS is able to find devices on the network that are non-bonjour. Specifically I need to find a control device that will in the future have the appropriate Bonjour announce code but there are tons of these devices…
FujiRoyale
  • 762
  • 10
  • 26
1
vote
0 answers

NSNetServiceBrowser cannot find any service, the delegate method does not seems to be called

I am using NSNetServiceBrowser to browse bonjour service. The service is started successfully, however, I am facing an issue while browsing the service. When I make the call searchForServicesOfType:inDomain, only the netServiceBrowserWillSearch…
Abbas Awan
  • 113
  • 1
  • 14
1
vote
1 answer

NSNetServiceBrowser not finding services that exist

I have a custom Cocoa (OSX) server and client, and the server publishes a bonjour service. I have the client searching for the server using NSNetServiceBrowser, but I never get any results. I know that the service is published because it is in the…
Linuxios
  • 34,849
  • 13
  • 91
  • 116
0
votes
2 answers

Get Model Identifier of Device in Network

I have a couple of Apple devices in my network (both computers and mobile devices). I was wondering if it is possible, to get the model identifier like Macmini9,1 if I have the IP address and/or the Mac address. I am using the NetServiceBrowser and…
inexcitus
  • 2,471
  • 2
  • 26
  • 41
0
votes
0 answers

Bonjour -How to get the IP address to uniquely identify each client connected to the network

I'm not well versed in networking but I'm firing up my own Bonjour service to find nearby users. I read this blog post and it says: Socket represents a unique communication endpoint on the network. When your app needs to exchange data with…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
0
votes
1 answer

Swift: netServiceBrowser didRemoveService MacOSX 10.13

I am trying to run a NetServiceBrowser. It will detect a new ZeroConf device as soon as it appears on the network. It doesn't however detect when the device is removed from the network. netServiceBrowser(aNetServiceBrowser: NetServiceBrowser!,…
iphaaw
  • 6,764
  • 11
  • 58
  • 83
0
votes
1 answer

NSNetServiceBrowsing cannot resolve Services with Error -72004

For a couple of days I try to implement a App that browses for Bonjour-Services in my Network and display them in the Console (for the first step). I implemented a class with a NSNetServiceBrowser and initialized it as indicated in many posts here.…