It's a little odd, but the tutorial has different code than their github repo (which is linked at the bottom of the tutorial). The tutorial never actually tells flask what port to listen to. The github app.py has this at the bottom instead: