Skip to content

Discover uses wrong IP for broadcasts on Windows #584

@xobs

Description

@xobs

According to the Valetudo documentation at https://github.com/Hypfer/Valetudo/wiki/Installation-Instructions#flashing-the-firmware-image, the following command should be used to discover the token of an unprovisioned device:

> mirobo --debug discover --handshake true

However, the program attempts to send a broadcast packet to <broadcast>. This maps to 255.255.255.255, which does not work on Windows.

Instead, one must use the actual broadcast device. In this case, it's 192.168.8.255. Changing to this causes discovery to work.

See https://grokbase.com/p/python/python-list/032g91nq60/broadcast-socket-bind-on-windows-broadcast-or for discussion of similar issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions