Skip to content

Expose server to an external network #39

@kerudev

Description

@kerudev

Right now we are hardcoding the following server configuration:

return Config(app=app, host="0.0.0.0", port=8000)

This makes the server available on the local network, but we need to expose it externally.
To do that, we'll need to pass the computer's IP address and let the user choose a port.

In order to do that, we must change the run command to accept the following arguments:

PORT_FLAGS = ("-p", "--port")
HOST_FLAGS = ("-h", "--host") # it may collide with the -h of the help command

Metadata

Metadata

Labels

featureNew feature or request

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions