title: Flask Failed to connect, address not available
body: <p>I'm new to python and flask, I'm following this <a href="https://auth0.com/blog/using-python-flask-and-angular-to-build-modern-apps-part-1/" rel="nofollow noreferrer">tutorial</a> to create an application with flask and angular.</p>
  <p>To make things quicker, because I don't need a database at the moment, I skipped the steps of creating the model and the connection.</p>
  <p>I ran this command <code>touch src/__init__.py</code> and in my <code>myapp/backend/src/main.py</code> I have this:</p>
  <pre><code>from flask import Flask, jsonify, request
  
  app = Flask(__name__)
  
  @app.route('/test')
  def get_exams():
      print('ou')
  
  if __name__ == '__main__':
      app.run(host='0.0.0.0',port=5000)
  </code></pre>
  <p>Also I created the <code>myapp/backend/bootstrap.sh</code> with this:</p>
  <pre><code>#!/bin/bash
  export FLASK_APP=./src/main.py
  source $(pipenv --venv)/bin/activate
  flask run -h 0.0.0.0
  </code></pre>
  <p>But if I try to run <code>curl http://0.0.0.0:5000/test</code> I got this error <code>curl: (7) Failed to connect to 0.0.0.0 port 5000: Address not available </code></p>
  <p>Aside from the database steps, I made everything according to the tutorial.</p>