react-native-zeroconf icon indicating copy to clipboard operation
react-native-zeroconf copied to clipboard

How to scan for multiple MDNS hosts ?

Open ShivamJoker opened this issue 6 years ago • 5 comments

Hey I am wondering how we can lookup for a particular host. I tried having multiple hosts but it shows only one I looked through all the issues but couldn't find anything. I have a microcontroller with name testme.local And I want to particularly look for it but when I create mdns host from nodejs also then the resolved function gives me only Node JS host name. Any help would be very helpful. Thanks

ShivamJoker avatar Jan 02 '20 15:01 ShivamJoker

Hello @ShivamJoker , I have not had trouble myself with multiple MDNS hosts. However, I have had trouble finding multiple addresses for this same host. I will sometimes receive multiple addresses from my scan, but many times the results are inconsistent and I only get one result.

Is your problem the same as mine by chance? if so, have you discovered any resolutions?

jkaravakis avatar Jan 24 '20 21:01 jkaravakis

I don't understand how same host with different address like I described multiple servers are running and they are connected to the same network but I can only find one

ShivamJoker avatar Jan 25 '20 04:01 ShivamJoker

Ok I believe my situation is different. In my case, I have two devices with the same host name. When working properly, I see two addresses under the same host name after a scan.

I have had no issues seeing two devices with different host names (e.g. a printer and a smart plug).

jkaravakis avatar Jan 25 '20 04:01 jkaravakis

Which function do you use for searching multiple hosts ? Can i get some code

ShivamJoker avatar Jan 25 '20 04:01 ShivamJoker

Which function do you use for searching multiple hosts ? Can i get some code

want to be like you :))

tunm1228 avatar Apr 09 '21 09:04 tunm1228