nsd icon indicating copy to clipboard operation
nsd copied to clipboard

'_services._dns-sd._udp' not working on real IOS device.

Open skitsa1 opened this issue 10 months ago • 3 comments

Description

I got '_services._dns-sd._udp' working on a simulator, but when I try it on a real IOS device, it doesn't work. Please help.

Getting this error. [MethodChannelNsdPlatform] [2024-04-24 13:25:22.546129] [calls] Callback: onDiscoveryStartFailed {handle: b3036420-f8ad-46ec-a819-69cf24ec50e9} [MethodChannelNsdPlatform] [2024-04-24 13:25:22.536451] [calls] Call: startDiscovery {handle: b3036420-f8ad-46ec-a819-69cf24ec50e9, service.type: _services._dns-sd._udp}

Scenario

Run the example application

Platform

iOS

skitsa1 avatar Apr 24 '24 01:04 skitsa1

Have identified is fixed when adding the following to info. list.
_services._dns-sd._udp or _dns-sd._udp

but then it only discovers other services that are on disclosed on info.plist "_http._tcp"

this is unfavourable because I am trying to discover all services and wont be able to disclose these all on info.plist as don't know what they are.

Not confident will be able to find solution to this one. Cheers

skitsa1 avatar Apr 24 '24 01:04 skitsa1

@skitsa1 you need to requestfor multicast entitlement from apple for this to work

Infinical avatar Apr 30 '24 12:04 Infinical

Working. Much appreciated. Saved the project 10/10

skitsa1 avatar May 08 '24 00:05 skitsa1