I want to list all shared devices name which is available on that network by which i use on my device. So that i can know who is using the same internet network. After googling i found that using Bonjor i can do it. I use NSNetService class to discover the available network by make the instance of class NSNetService using the method " initWithDomain:type:name:port: " In its argument domain:@"" for zero configuration of Bonjor, type:"_Bonjor._tcp." name:@"" for dynamically allocation and port:0 so that it assigned automatically. With these arguments its discover devices but only those which is using the same app , I think it is because of service type. But i didn't get what service name i provide this method so that it give me the list of all devices using same network not only those devices which use same app. Need help for this. Any help be appreciable. Thanks in advance
Asked
Active
Viewed 1,155 times
2
-
Any luck ? Did found any solution ? – Developer May 02 '18 at 07:31
-
any luck? If u solved it please share your solution – famfamfam Oct 19 '18 at 09:08
1 Answers
1
you can refer this example given by apple:
http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html

V-Xtreme
- 7,230
- 9
- 39
- 79
-
Thanks for the link, But this sample code have their own server, so their is a prifixed server name which is same like i do by providing type:@"_bonjor._tcp." , I my case i don't have nay app server. I need to work some standard services like HTTP, FTP, or Telnet. But how i don't know . – Surjeet Singh Jul 25 '13 at 07:49
-
Any one use Bonjor with standard services like http, ftp to access systems in the wan network ? please tell me. – Surjeet Singh Jul 26 '13 at 12:03