-
-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Your Current NRCHKB Plugin Version
1.4.3
Operating System
macOS Big Sur
How can we help?
Hello everyone.
Here's the situation:
When setting up the custom mDNS fields of NRCHKB, Node-RED complains about Error: bind EADDRINUSE 10.80.10.2:5353. I guess the reason is that macOS is running is own instance of mDns. Anyway to workaround this?
Here are more informations about the setting:
- I've recently upgraded my whole network with UniFi devices. I've also rethought my LAN and rather than one unique network, I now have 4 (Management for UniFi devices, Local (my main), Services (all IoT devices, including HomeKit hubs) and Guest.
- I own a server (Mac mini M1) which runs Node-RED and NRCHKB.
- The server is plugged into a Switch Flex Mini (which itself is plugged into the UDM) and because of some limitations with this device, the native network (VLAN1) provided to the ethernet interface of the Mac mini is "Management". I've added two other interfaces to the mini: VLAN Services and VLAN Local.
With this setting, my issue is that all NRCHKB created HomeKit devices are in "no response" mode.
Whatever the priority order I set for the interfaces (even if I place the Services VLAN topmost), the broadcast won't work.
I found two solutions to my problem, none are very good for me:
- I change my network setup so the native network (VLAN1) provided by the switch is "Services", thus, my server default ethernet interface will get a service network and all work fine. But this has other drawbacks (not interesting to discuss here) and for this reason, I would like to avoid it.
- I literarily disable (see capture) the ethernet interface, make sure Services VLAN is first on the list, and boom, working again. The reason I don't like this solution is if for any reason I need to plug my server to whatever other network, it won't get any IP, because default interface is disabled and no corresponding VLANs will be available. Also, the server is running without screen attached.

So, I digg around and found this topic and the NRCHKB option to specify the mDNS info. I did the following settings: (10.80.10.2 is my server IP set on the Services VLAN interface). For the test I obviously enabled back the native interface.
Saving such a setting will prevent Node-RED to start with error:
Error: bind EADDRINUSE 10.80.10.2:5353
I guess the reason is that macOS is running is own instance of mDns.

I'm not super tech in network thingy, so if ever you would have ideas on how to make Node-RED up and running when my native ethernet is enabled and still broadcast to the Services VLAN, I would immensely appreciate.
I'm of course opened to other suggestions.
Thanks a lot in advance.
Any more details?
If this is specific to some hardware or specific software version, please explain here.
Any code or functions to add?
No response