Skip to content

Setting hostname on Pico W (still) has no effect: no host name is exposed (also not the default one) #17975

@magnus-0

Description

@magnus-0

Port, board and/or hardware

Pico W

MicroPython version

MicroPython v1.26.0 on 2025-08-09; Raspberry Pi Pico W with RP2040

Reproduction

  1. Create a WLAN with IF_AP and set hostname via network.hostname('test') or via deprecated WLAN.config(hostname = 'test')
  2. Confirm that the hostname is printed as such
  3. 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

According to this issue the problem was solved and closed, but that doesn't appear to be the case in reality.

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.

See also this url.

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions