Skip to content

QR code / Network URL shows unreachable 169.254.x.x link-local address #225

@tkrajcar

Description

@tkrajcar

Environment

  • OS: macOS (Darwin 24.6.0)
  • listhen: 1.9.1 (via Nuxt 3.21.2)

Reproduction

  1. Have a machine with a link-local IPv4 network interface (e.g. macOS Thunderbolt Bridge, or any unconfigured Ethernet adapter)
  2. Run a dev server with host: '0.0.0.0' (e.g. Nuxt with devServer: { host: '0.0.0.0' })
  3. The QR code and Network URL show http://169.254.x.x:3000/ instead of the actual LAN address (e.g. http://192.168.x.x:3000/)

The QR code points to the link-local address, which is unreachable from other devices on the network.

Description

getNetworkInterfaces() in src/_utils.ts filters out IPv6 link-local addresses (fe80::) but does not filter their IPv4 equivalent (169.254.0.0/16). Since the results are sorted alphabetically, 169.254.x.x sorts before 192.168.x.x and gets picked as the first network URL / QR code target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions