Skip to content

Conversation

@tanmayjoddar
Copy link

This commit adds functionality to automatically find an available port when the default port (7878) is already in use. This addresses issue #226 where users were experiencing errors when trying to run OpenUI in environments with reverse proxies or when multiple instances were running.

Changes:

  • Added a find_available_port function that tries to find an available port starting from the configured port
  • Modified the server startup code to use this function when the default port is unavailable
  • Added error handling to provide clear error messages when no ports are available
  • Updated the documentation to mention the automatic port selection feature and how to specify a custom port

Fixes #226

This commit adds functionality to automatically find an available port when the default port (7878) is already in use. This addresses issue wandb#226 where users were experiencing errors when trying to run OpenUI in environments with reverse proxies or when multiple instances were running.

Changes:
- Added a find_available_port function that tries to find an available port starting from the configured port
- Modified the server startup code to use this function when the default port is unavailable
- Added error handling to provide clear error messages when no ports are available
- Updated the documentation to mention the automatic port selection feature and how to specify a custom port

Fixes wandb#226
@phillonc
Copy link

Approved

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

Successfully merging this pull request may close these issues.

error while attempting to bind on address ('0.0.0.0', 7878): address already in use

3 participants