I found the solution for my issue. It turns out that my service is published in udp, therefore. withthiscode.
- (void) initBrowsingServices
{
NSString* servicesOfType = @"_http._udp.";
NSString* domain = @"local";
domainBrowser = [[NSNetServiceBrowser alloc] init];
[domainBrowser setDelegate:self];
[domainBrowser searchForServicesOfType:servicesOfType inDomain:domain];
domains = [[NSMutableArray alloc] init];
searching = NO;
}
I can receive my service now.