robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.59k stars 1.31k forks source link

Bonjour announcing not working iOS8 #118

Closed spameater closed 9 years ago

spameater commented 9 years ago

I looks like the Bonjour announcing does not work on iOS8 anymore. The service can be discovered but when trying to resolve the service:

[serverService setDelegate:self]; [serverService resolveWithTimeout:30.0];

I get a net service error:

It works perfectly using iOS7. Using Bonjour Browser on the Mac I get the same result. The service is found but cannot be resolved.

I just tried the Apple WiTap sample and the result is the same. So this seems to be an core os issue rather than an issue with CocoaHTTPServer.

Pechkins commented 9 years ago

Hello spameater. Do you found the solution to this problem? I have the same problem since the iOS 8 release.

spameater commented 9 years ago

I opened a question at the Apple developer forum. I don't know if it ever got solved. https://devforums.apple.com/message/1048328

longchuan1985 commented 9 years ago

has the bonjour issue been resolved in iOS8? I heard that in iOS9 apple recover the original mDNSResponder from DiscoveryD. But does anyone know the workaround in iOS8.

vfernandezg commented 9 years ago

Hi, I'm having the same problem. Any news of this?

davidgoli commented 8 years ago

:+1:

romuye123 commented 7 years ago

Hello, I am facing the same problem. I am not even able to discover the services. It works perfectly fine on iOS 9/10.

Any workaround for iOS 8 ???

xuhongfei commented 5 years ago

Hello, I used CocoaHTTPServer to setup my local server. But, it just can access by 127.0.0.1:port.What should i do to let it can access by www.mywebsite.com?