Unsure how to get network.hostname() working in RPi Pico #15562
-
I am having a tiny web server in RPi PicoW. To connect it to WLAN, I have the following commands in the Micropython script: I have double-checked the problem with ping command in Win11 laptop, by trying each of "pico", "pico." and "pico.local" as destination address, but I get error "Ping request could not find host pico." Weird thing is that IMO the DNS name has succeeded more than one time in the past weeks. However, I cannot get it work anymore. As WLAN hub, I have tested both ZyXEL LTE 3301 and a Samsung phone WLAN hotspot. How to get the DNS destination name working? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You're doing hostname correctly it's just that mDNS doesn't work as it should: mDNS support on Pico · micropython · Discussion #10932 |
Beta Was this translation helpful? Give feedback.
-
Ah, ok, thank you... |
Beta Was this translation helpful? Give feedback.
-
Thank you for advice, Stewart! |
Beta Was this translation helpful? Give feedback.
No, there's nothing you can do until the issue's fixed.
Depending on the domain your router uses, you might be able to access it through your router's search domain. In my case, that would be a host like pico.ht.home, but yours is probably different