Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development server: allow listening host other than "localhost" #60

Open
SlyEcho opened this issue Oct 1, 2024 · 0 comments
Open

Development server: allow listening host other than "localhost" #60

SlyEcho opened this issue Oct 1, 2024 · 0 comments

Comments

@SlyEcho
Copy link

SlyEcho commented Oct 1, 2024

Background: Currently, the development server opens a socket on localhost:1990 by default.

While the port 1990 can be changed on the command line with -Dport=, there is no way to set the host IP/name.

Solution: I propose a build setting like -Dhost= or -Dlisten= or something similar for setting this option. It would accept a hostname or IP address.

Maybe it could even have some facility to listen on all addresses, but the user could also just use ::0 or 0.0.0.0 if that's desired, so this could just be mentioned in the help output / docs.

Motivation: it is useful for running the build server in a VM, or in some cases to check the built site on a mobile device, etc, without having to use port mapping or some extra work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant