Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Add keyword arg to let Bottle listen on all interfaces#155

Merged
ChrisKnott merged 1 commit intopython-eel:masterfrom
aaknitt:patch-2
Jun 16, 2019
Merged

Add keyword arg to let Bottle listen on all interfaces#155
ChrisKnott merged 1 commit intopython-eel:masterfrom
aaknitt:patch-2

Conversation

@aaknitt
Copy link
Copy Markdown
Contributor

@aaknitt aaknitt commented Jun 16, 2019

Replacement for #139

Added option to allow bottle server to listen on all interfaces. Bottle allows listening on all interfaces when the host is set to '0.0.0.0' as per documentation: https://bottlepy.org/docs/dev/deployment.html

Without this change setting the host to '0.0.0.0' via eel options fails because this is not a valid address for the web browser to navigate to in order to access the server. The added keyword arg still allows a single IP address to be specified for the browser that eel launches to use, but passes '0.0.0.0' to the bottle server so that the GUI can be accessed on all IP addresses. For example, both 'localhost' and one or more LAN IPs. Default is set so that behavior does not change unless this new keyword arg is specifically added and set to True.

Added option to allow bottle server to listen on all interfaces.  Bottle allows listening on all interfaces when the host is set to '0.0.0.0' as per documentation:  https://bottlepy.org/docs/dev/deployment.html

Without this change setting the host to '0.0.0.0' via eel options fails because this is not a valid address for the web browser to navigate to in order to access the server.  The added keyword arg still allows a single IP address to be specified for the browser that eel launches to use, but passes '0.0.0.0' to the bottle server so that the GUI can be accessed on all IP addresses.  For example, both 'localhost' and one or more LAN IPs.  Default is set so that behavior does not change unless this new keyword arg is specifically added and set to True.
@ChrisKnott ChrisKnott merged commit 106617a into python-eel:master Jun 16, 2019
@ChrisKnott
Copy link
Copy Markdown
Collaborator

Added 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants