DioxusLabs / DioxusLabs/dioxus

Assigning a port number / bind address when using LaunchBuilder

Open
#5,263 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

I could not find a way to set the port number via the launch builder.
There is [https://github.com/DioxusLabs/dioxus/issues/2380#issuecomment-2089103296](https://github.com/DioxusLabs/dioxus/issues/2380#issuecomment-2089103296) 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.