jmdns
(which is being used to discover network boards) to address security and performance problems in the older versions. The boards are now added/removed based on the information coming from that library, so if a board disappears it is due to mdns reporting the "disconnection". #8408
Activity
per1234 commentedon Jan 20, 2019
It's not useful to report problems that occur with outdated versions of the Arduino IDE. Please always download the Hourly Build of the Arduino IDE and test with that version to verify the problem still occurs before opening an issue report:
https://www.arduino.cc/en/Main/Software#hourly
After doing so, please comment here to let us know whether your issue has been resolved or not.
jcflyer commentedon Jan 20, 2019
OTA for nodemcu only works with old ide versions. New version 1.8.8 from MS store does the same thing.
matthijskooijman commentedon Jan 20, 2019
I would also suggest taking this up with the maintainers / community of the esp8266 core (e.g. submit a support request there, through whathever channel they prefer (I suspect their forum). They might be able to comment on whether this is expected to work and perhaps fix things on the esp core side. If the outcome is that there is a bug in the Arduino IDE, this is the place to come back to then.
facchinm commentedon Jan 21, 2019
@jcflyer in the original post you are talking about using 1.6.11 in both XP and windows10 and mdns discovery only works in the former, right? Or are you comparing 1.6.11 with 1.8.8?
jcflyer commentedon Jan 21, 2019
jcflyer commentedon Jan 21, 2019
facchinm commentedon Jan 23, 2019
Hi @jcflyer ,
can I ask you to test the latest Beta https://www.arduino.cc/en/Main/Software#beta ?
You'll see two menus for both serial ports and mdns ports; one is bundled while the other is pluggable and based on https://github.com/arduino/mdns-discovery .
If the pluggable one works better it would greatly accelerate the switch.
Let me know! Thanks!
jcflyer commentedon Jan 23, 2019
Bbas11 commentedon Jan 24, 2019
I had the same problem with ports disappearing since 1.8.6. If i restart the IDE they would show for a few seconds then there gone. Latest beta fixed it. Now two ports show for each board. if i select one the other one gets selected also. All the ports always show up now in both versions now. No problems with flashing. Looks like its finally fixed.
Windows 10, python 2.7 basic arduinoOTA sketch.
pfeerick commentedon Jan 24, 2019
I think the issue is in the Arduino IDE, as when I open the ports menu the first time after opening the IDE (v1.8.8) on linux, I see four of the five mDNS OTA ready devices listed... if I close the menu (not the IDE), and immediately reopen the ports menu... all but one is missing (and which one is shown is sometimes random between restarts of the Arduino IDE). But I can see all five devices in the PlatformIO mDNS list, and also using zeroconfbrowser - so they are reporting correctly, but the IDE does not show them. I have the same issue of not all devices showing on Windows (also v1.8.8), but I can't swear that it exhibits the same "some then one" behaviour. I tried running 1.8.1 of the IDE on Windows just after 1.8.8, and all of the devices are listed.
@facchinm

I'll try the beta version on Windows also, and let you know what my results are ;)So just tried the latest 1.9.0 beta build, and mDNS discovery seemed to be much, much more reliable than previous versions of the IDE after a few minutes of poking around and seeing what breaks. Didn't have any issues with only some devices being discovered, devices being lost between refreshes of the menu, and all devices that should have been discovered were discovered. My only question is about menu duplication - bug / work in progress gremlin / board support package related / other?1 remaining item
immutability commentedon May 13, 2019
I don't want to open a new issue report in case it would be a duplicate, as I'm possibly facing the same problem on my Windows 10 machine. In previous Arduino IDE versions (tested on 1.8.3 and 1.8.5) the port discovery works just fine and is reliable and stable. With versions 1.8.6, 1.8.7, 1.8.8, 1.8.9 and the current 1.9.0 beta, the port discovery doesn't work at all for me - I only have one ESP8266 node on my network but it never shows up. Switching between different Python versions doesn't seem to have any effect, currently on Python 3.7.2.
Other mDNS browsers find the ESP8266 node without a problem (tried a Chrome app and Bonjour Browser from hobbyistsoftware). Seeing the reference to jmdns library, I have tried to run the sample discovery java code provided in jmdns readme on github, and it doesn't find anything on my Windows 10 machine. Running the same java sample code on Xubuntu 18.04 VM on the same network works OK and discovers the ESP8266 node. Unsurprisingly, Arduino IDE 1.8.9 also finds it on Xubuntu 18.04.
Do I understand the above note right that it will soon be possible to hard-code known ports that aren't detected automatically using a text file?
Bbas11 commentedon May 13, 2019
Try the hourly. The only problem i still have is once my computer sleeps the ports wont come back unless i restart. Otherwise the ports are always there.
Tested with Windows 10 pro, python 2.7, basic arduinoOTA sketch.
immutability commentedon May 14, 2019
@Bbas11 thanks for the suggestion, haven't tried the hourly builds yet so I did now - Arduino 1.8.10 hourly build 2019/05/07 05:33 - but alas, no change, nothing detected. I have also tried a clean boot as I'm using sleep all the time and rarely reboot but it made no difference.
hbosko commentedon May 20, 2019
i fixed my issue with:
First start arduino 1.8.9 - no ports are showing even if i wait 100 years... dont close that one...
in virtual mashine or the same PC i started version 1.8.5 and immediately are ports showing on both arduino versions.
If i restart arduino 1.8.9 and ver 1.8.5 is running in VM or background, no ports will show immediately, but will in about 1 minute.
ESP8266 version 2.5.2. - both arduino versions
Phyton 2.7.15 64bit
nothing blocked in firewall, python, java or arduino.
You NEED to run version 1.8.5 on the SAME PC.
Can you please try if works for you?
EDIT:
NO weird software instaled mDNS, bonjour, etc..
immutability commentedon May 21, 2019
@hbosko wow, this sounds like such a crazy idea that I had to try it :) and it worked! I haven't tried it in a VM but I started 1.8.9 first, and then 1.8.5 and voila, the network port appeared in both running instances of the Arduino IDE.
If I started 1.8.9 while 1.8.5 was already running, the port only appeared in 1.8.9 after about 3 or 4 minutes (so a bit longer than for you) but when I first start 1.8.9 and only then 1.8.5, the port will appear in both pretty much immediately. Interesting workaround - thanks! :)
What is quite interesting is that if I launch Bonjour Browser while Arduino 1.8.9 is running, it seems to have the same effect - as soon as the device appears in the Bonjour Browser, the port also appears in Arduino 1.8.9. So another workaround without the need to keep multiple versions of Arduino IDE installed/running side by side.
I did leave the Arduino IDE 1.8.9 running for 20 minutes on its own now (with 1.8.5 and the Bonjour Browser closed) just to see if the port wouldn't eventually appear after a longer delay, but no, it didn't. After starting the Bonjour Browser (after the 20 minutes) the port appeared pretty much immediately.
hbosko commentedon May 21, 2019
Glad it worked and you found easyier way to find ports without running 2 instances, since i keep my computer clean as posible, without any additional software...
So meybe we are closer to be fixed :)
This is my simple OTA code, it works fantastic to the version 1.8.5<, not a single problem. As you see i removed mDNS and didnt had any trouble on host maschines winXP or win7 or win10, not tried linux.
I am running PFsense 2.4.4. router - i blamed router but i was wrong.
Meybe DEVs removed smthing smthing, i am not programmer so i cant look code and find solution, but i hope it hepled litlebit :)
Sorry for my bad english.
0xCAFEDECAF commentedon Jun 2, 2020
Please upgrade 'jmdns' library to 3.5.5 (or later).
Arduino IDE versions 1.8.6 ... 1.8.12 and 1.9.0-beta (for Windows, maybe also for Linux) are having problems showing devices as network ports for OTA upgrade.
'jmdns' version 3.5.3 has problems on systems with multiple network interfaces. (By the way: version 3.5.1, as used by IDE 1.8.5 and below, works fine...)
See analysis @ https://forum.arduino.cc/index.php?topic=575560.msg4608533#msg4608533 .
per1234 commentedon Oct 11, 2022
Closing as obsoleted by the complete reworking of the network port discovery system for Arduino IDE 2.0.0.
If anyone is having problems with network ports on Arduino IDE 1.x, please give 2.x a try. The download links are listed here:
https://www.arduino.cc/en/software/
If you discover any problems, feel free to open an issue in the new repository:
https://github.com/arduino/arduino-ide/issues?q=