RE: Working with Flask and Apps with Port 81

Hello Again,

Seth here. I am working out of a book and Flask is the subject.

from flask import Flask
app = Flask(name)

@app.route("/")
def hello():
return "Blah, blah, blah!"

if name == “main”:
app.run(host=‘0.0.0.0’, port=81, debug=True)

The above software should run an app online at http://beaglebone.local:81 and I should get some feedback on my PuTTY command line.

Issue 1: The sudo python super-Flask.py software runs and does not quit but when I arrive via Chrome to my port address, there is nothing but an error on the online page stating that this host does not exist.

Issue 2: Should I use another host or port? I have no clue and the people from Flask sent me back to the “you people.” BBB! Oh and the BBBW!

Seth

P.S. If you have any ideas, hit me up. I sure could use some three-year hiatus fixes.

Hello…I figured I could do some damage to the software but nope. I just changed the 0.0.0.0:81 host:port values and BAM, it worked.

With Flask, use your BBB SSH sign in credentials (IP address) for the host and use port 5000. This should work universally with older model books that want to use other hosts and ports, e.g. that are outdated or no longer used with specific software.

Seth

P.S. Enjoy!