dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

bug: "Serving at" IP address doesn't reflect "--addr" passed

Open luisschwab opened this issue 10 months ago • 0 comments

Problem

The address passed via --addr doesn't show up on the Serving at: section; it's always 127.0.0.1.

~$ dx serve --addr 0.0.0.0
10:12:28 [dev] -----------------------------------------------------------------
                Serving your Dioxus app: scrow
                • Press `ctrl+c` to exit the server
                • Press `r` to rebuild the app
                • Press `p` to toggle automatic rebuilds
                • Press `v` to toggle verbose logging
                • Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.6/getting_started
               ---------------------------------------------------------------- 
10:12:36 [dev] Build completed successfully in 264ms, launching app! 💫
╭────────────────────────────────────────────────────────────────────────────────────────── /:more ╮
│  App:     ━━━━━━━━━━━━━━━━━━━━━━━━━━  🎉 0.3s      Platform: Web                                 │
│  Bundle:  ━━━━━━━━━━━━━━━━━━━━━━━━━━  🎉 7.2s      App features: ["web"]                         │
│  Status:  Serving scrow 🚀 7.5s                    Serving at: http://127.0.0.1:8080             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Steps To Reproduce

Steps to reproduce the behavior:

  • dx serve --addr 0.0.0.0

Expected behavior

It should say Serving at: 0.0.0.0:8080

Environment:

  • Dioxus version: dioxus 0.6.3
  • Rust version: rustc 1.85.0
  • OS info: arch
  • App platform: N/A

luisschwab avatar Mar 06 '25 13:03 luisschwab