mDNS reporting wrong IP address with esp32-wifi-manager

bcolbert
Posts: 9
Joined: Mon Jul 05, 2021 7:32 pm

mDNS reporting wrong IP address with esp32-wifi-manager

Postby bcolbert » Mon Jul 12, 2021 4:24 pm

I'm not sure where to ask this but I'm hoping someone has run into this and has a fix.

I'm using esp32-wifi-manager (https://github.com/tonyp7/esp32-wifi-manager) in my project. It works great and appears pretty simple. When the WiFi is uninitialized it starts initialized the WiFi in AP mode and provides a web page for configuring the SSID and PW to attach to. Then it switches into STA (station) mode and attached to the access point you specified and as long as it can re-attach to that access point it will stay in STA mode.

When I start mDNS in STA mode, defining an HTML service, and try to attach to my device (ex: http://myesp32.local) the address that is resolved by mDNS is the address of the AP mode, not what was served by DHCP in STA mode. I can, however, ping myesp32.local just fine. The address is properly resolved.

Any ideas?

boblock
Posts: 1
Joined: Tue Apr 18, 2023 5:58 pm

Re: mDNS reporting wrong IP address with esp32-wifi-manager

Postby boblock » Tue Apr 18, 2023 8:40 pm

An old post but I have the same problem. Solution is changing from line 233 in http_app.c as per link:https://github.com/elijahnyp/esp32-wifi-manager
Now through the browser "name.local" works.

bcolbert
Posts: 9
Joined: Mon Jul 05, 2021 7:32 pm

Re: mDNS reporting wrong IP address with esp32-wifi-manager

Postby bcolbert » Wed Apr 10, 2024 6:31 pm

boblock wrote:
Tue Apr 18, 2023 8:40 pm
An old post but I have the same problem. Solution is changing from line 233 in http_app.c as per link:https://github.com/elijahnyp/esp32-wifi-manager
Now through the browser "name.local" works.
Thank you for your response.

I'm not sure I understand. What is the change that is needed at line 233? I'm looking at the code and my code looks just like the code you linked.

Thank you

Who is online

Users browsing this forum: Baidu [Spider] and 163 guests