Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Modify host variable from 127.0.0.1 #58

Open
dominopetter opened this issue Mar 25, 2021 · 2 comments
Open

Modify host variable from 127.0.0.1 #58

dominopetter opened this issue Mar 25, 2021 · 2 comments

Comments

@dominopetter
Copy link

Hi,

I found this in the code:

    host = kwargs.get("host", os.getenv("HOST", "127.0.0.1"))
    port = kwargs.get("port", os.getenv("PORT", "8050"))

Is it possible to modify these variables to fit my own environment as accessing something from 127.0.0.1 is not working in the setup I have and would need to be 0.0.0.0?

Thanks
Petter

@dominopetter
Copy link
Author

dominopetter commented Mar 25, 2021

Tried this in the Python code but unfortunately, my coding skills are severely lacking
def init(self, **kwargs):
host = kwargs.get("host", os.getenv("HOST", "0.0.0.0"))
port = kwargs.get("port", os.getenv("PORT", "8050"))

Then ran app.run_server()

But still, get Dash app running on http://127.0.0.1:8050/

@WilliamJudge94
Copy link

I am having the same issue. Any fix for this?

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

No branches or pull requests

2 participants