Hi guys,
On the network I'm on, everything is closed.
So I have the admin phoning me asking WTF.
So here, why is mdns-discovery.exe always trying to access the network?
I mean constantly... every 20 odd seconds!
Thank You.
Removed the image...
Hi guys,
On the network I'm on, everything is closed.
So I have the admin phoning me asking WTF.
So here, why is mdns-discovery.exe always trying to access the network?
I mean constantly... every 20 odd seconds!
Thank You.
Removed the image...
It is probable your admin checking there are no unauthorised things running in their network.
Or else you do not have a fire wall.
You really shouldn't post all that information about your network either or you might be getting the sack. Edit your post and remove the picture.erridicate those network numbers, edit the post agin and repost.
Anyway you posted in perhaps one of the two places on the forum you can't post a question concerning your project. You posted in the section for getting the IDE working, so I moved your post here.please be careful where you post in future.
Hi @netweezurd. mdns-discovery is a "pluggable discovery" tool used by Arduino IDE to identify the ports of Arduino boards that use the "ArduinoOTA" approach to communicate with the Arduino development tools over the network for things like OTA uploads. It detect the appearance and disappearance of such ports on the network so that the port listings such as you see in the Tools > Port menu of the Arduino IDE and the board selector dropdown on the Arduino IDE 2.x toolbar will reflect the ports currently available.
Some examples of uses of this capability:
https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#application-example
@Grumpy_Mike
The image was from a bogus test network I put up in the lab.
No useful information.
@ptillisch
Thank you for your reply.
Yes I figured what was mdns-discovery.
Can it be switched off ?
There isn't a formal way to do this. Even though we now have a nice "pluggable discovery" system where Arduino boards platforms can specify the discovery tools (including custom tools for any arbitrary protocol) they require for their boards, and the IDE only runs those tools when a platform requiring it is installed, this system is relatively recent. Previously, the discovery of serial ports and later network ports was built into the Arduino IDE 1.x codebase and always done, so the boards platform system did not have any need for a way to specify discovery tools. So serial-discovery and mdns-discovery are considered "builtin" tools that always run in order to provide backwards compatibility with the ~95% of existing boards platforms that don't specify discoveries.
There is a hack you can try though:
C:\Users\<user name>\AppData\Local\Arduino15\packages\builtin\tools\mdns-discovery\1.0.6
(replacing <user name> with your Windows user name)C:\Users\<user name>\AppData\ folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".The Arduino IDE currently has the behavior of silently ignoring a failure to start a discovery tool, so it will attempt to execute mdns-discovery.exe on startup, find the file is missing, and then simply move on with the startup.
It is possible this behavior might change at some time in the future, for example, there is a proposal here to make it attempt to reinstall the tool when this happens:
But there are no immediate plans for any such change that I am aware of. An alternative workaround can be devised if the time comes when the current hack stops working.
Something you should be aware of is that the IDE will automatically install new versions of mdns-discovery when they are released by Arduino. You will need to repeat the process at that time, following the same procedure described above, with the only difference being the version component of the path (currently 1.0.6).
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.