title: How to deploy flask backend with waitress server to the internet?
body: <p>I programmed a flask backend, and made it work on my local network (wifi, ethernet etc). However I can't manage to expand it so external searches reach it. The code for the backend looks like this:</p>
  
  <pre><code>import os
  from flask import Flask, flash, request, redirect, url_for, send_from_directory
  from waitress import serve
  other imports...
  
  app = Flask(__name__)
  app.secret_key = os.urandom(24)
  .....
  if __name__ == '__main__':
  serve(app,host='0.0.0.0',port=5000)
  </code></pre>
  
  <p>How should I give the server an external IP?</p>