Skip to content

Assigning a port number / bind address when using LaunchBuilder #5263

@ottolewis8

Description

@ottolewis8

Problem

I could not find a way to set the port number via the launch builder.
There is #2380 (comment) but the API has changed since this comment and this no longer works.
I found it can be done by setting env variables: IP and PORT when looking at:
dioxus-cli-config-0.7.3/src/lib.rs fullstack_address_or_localhost()
as called by
dioxus-cli-config-0.7.3/src/launch.rs serve_server()
As far as I can set tell it is not longer possible to set these programmatically.
I require to fetch IP and PORT over as a CLI argument and then pass to the dioxus::LaunchBuilder

Environment:

  • Dioxus version: 0.7.3
  • Rust version: 1.92
  • OS info: Debian 13
  • App platform: web fullstack

Questionnaire
Is it possible to do this, or is there a workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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