Open DavidM42 opened 5 years ago
I may or may not be having the same issue, i am running on esp32, in a thread. I have debug print messages showing that it is getting the packets and is attempting a reply packet, but my windows 10 with bonjour is not able to ping it with mdns but is with just the ipv4.
Sorry you are having trouble. This should work fine on both the ESP32 and the ESP8266 and I have both running fine on my network. Can you tell me what versions of Micropython you are running? The support for multicast in the network
module has varied over the last year. Also, @cartufer, can you post the code you are using?
My code is in https://github.com/cartufer/naiot the slimdns script i think is unmodified, apart from uncommenting some debug printouts. I use testThread() in main.py to launch slimdns. I am running "MicroPython v1.10 on 2019-01-25; ESP32 module with ESP32". Attached is a screenshot of both terminals. Let me know if i can help with testing, i am not advanced in python but i'm willing to run tests.
I'm not sure if its a socket problem, it may be but i'm starting to think its how packets are being handled. I reverted my esp32 to 1.9.4 and connected to my network. It is still behaving as before, i suspect certain computers/network environments don't take kindly to as you put it in slimDNS.py "We fake the handling of unicast replies.". I don't really have this kind of expertise though and if its working for you then it may be hard to debug on your end. I'm just going to have to find a workaround for referencing my devices.
Does not work on my ESP8266 nodemcu board either :(
Is it possible to advertise the ESP-8266 as mDNS service with this library? There is nothing in the README but I saw the advertise_hostname method. Tried it but could not get my device to be scanned by avahi. Am I doing wrong or is it not supported? After connecting to the wifi I tried it with
but I can't discover the ESP