diff --git a/libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp b/libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp index d23941ce53..e6d39914fe 100644 --- a/libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp +++ b/libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp @@ -226,7 +226,7 @@ bool MDNSResponder::_allocUDPContext(void) m_pUDPContext = new UdpContext; m_pUDPContext->ref(); - if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT)) + if (m_pUDPContext->listen(&m_netif->ip_addr, DNS_MQUERY_PORT)) { m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL); m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));