Cannot change default exposed IP (for DHCP etc) on Pico W running in AP mode (remains exposing default 192.168.4.x)
Port, board and/or hardware
Pico W
MicroPython version
MicroPython v1.26.0 on 2025-08-09; Raspberry Pi Pico W with RP2040
Reproduction
- Create a WLAN in IF_AP mode and set IP (and subnet, GW, DNS, etc) via WLAN.ifconfig
- Confirm that ifconfig() returns the expected parameters
- Conclude that the exposed IP address (incl DHCP range etc) when connecting clients to the AP remains the default 192.168.4.1
Expected behaviour
Expected the exposed DHCP gateway address and range to follow the set parameters, instead of the default 192.168.4.1
Observed behaviour
DHCP gateway address and range remain 192.168.4.1
Additional Information
(!) Do ensure ifconfig() is called áfter activating the WLAN, as otherwise it will definitely reset to the default settings, confirmed by printing them. So WLAN.active(true), then WLAN.ifconfig(...)
See also this link
and this link
Code of Conduct
Yes, I agree
Setting (WLAN) hostname on Pico W (still) has no effect: no host name is exposed (also not the default one)
Port, board and/or hardware
Pico W
MicroPython version
MicroPython v1.26.0 on 2025-08-09; Raspberry Pi Pico W with RP2040
Reproduction
- Create a WLAN with IF_AP and set hostname via network.hostname('test') or via deprecated WLAN.config(hostname = 'test')
- Confirm that the hostname is printed as such
- Conclude that no hostname is exposed when connected to the Pico W, not even the default one (CYW43)
Expected behaviour
Expected the hostname to be exposed as set (or at least as default)
Observed behaviour
No hostname is being exposed (not even the default one)
Additional Information
There was some writing of people re-building the firmware themselves whilst backing the hostname in it, but that's not a true solution for general Pico users.
Code of Conduct
Yes, I agree