-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESPmDNS Seems not to work. #387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having this same issue. In my case, I'm using the ArduinoOTA which does ultimately set the mDNS name itself, and it too started failing since a recent git pull. It worked at one point prior, but stopped. I just wish I recalled which checkout tag I was on at the time I noticed it working. |
@Kraay89 try with all letters in lowercase ;) |
I just tried ESPmDNS example. I was compiled without any error, but it not work. |
I can confirm that mdns is not working to me too (The same code on ESP8266 works) |
As commented here there are differences between the ESP8266 version of the library and the ESP32 version
If you call the same way as in ESP8266 MDNS.addService("osc", "udp", 4500);
MDNS.addServiceTxt("osc", "udp", "board", "ESP8266"); it will fail (without error) on ESP32. You need to call with MDNS.addService("_osc", "_udp", 4500);
MDNS.addServiceTxt("_osc", "_udp", "board", "ESP32"); |
This issue is closed, because it looks as if it is not a bug or problem with the ESP32 Arduino core or its support libraries. For general API usage questions or help on specific coding challenges, please visit the arduino-esp32 Gitter channel. If you feel this issue was closed in error, reopen it and comment, why you think this is a bug in the Arduino-Core. |
Hi, i have the same problem now on ESP32 with ESPmDNS lib. I understand the reason why this issue is closed but where put the searching result about fix it. I tried all i can seen here. But nothing help me. I tried the mDNS_Web_Server example and just change "http" and "tcp" to "_http" and "_tcp" on
But when i try to acces on http://esp32.local I'm using ESP32 Dev Module board / PlatformIO / Espressif Arduino-Esp |
Add
make sure that both the statements are added. |
Not sure if this is even close to allowed here (my first ever issue created on GH).
After adding the following to my program in the appropriate place in a slightly altered wifi server example (after WiFi.begin... and before server.begin)
WiFi.setHostname("MyDevice");
My program compiles and everything works as advertised, however:
I can't reach the device from a browser as i was expecting to... I cant ping the device either from powershell. Is this correct behavior and did i misinterpret how ESPmDNS works and what it provides or am i missing something?
The text was updated successfully, but these errors were encountered: