Add host to .py file to access it from outside

Viewed 17

I'm setting up a throat community, i finished all the required steps except i have issue with below:

The document says:

## to be able to access it from outside localhost...
nano throat.py
#add ", host='0.0.0.0'" to "socketio.run(app, debug=True)" inside parentheses
 
## to run: ./throat.py
## find IP of your machine (ifconfig), visit: http://<ip address>:5000

When executing nano throat.py I'm getting the below output:

socketio.run(
    app,
    debug=app.config.get("DEBUG"),
    host=app.config.get("HOST"),
    extra_files=extra_files,
)

Please advise how i can configure this so the script goes live. i use DigitalOcean vps with Debian 10x64.

0 Answers
Related