title: How to have one Flask app listen on two different ports?
body: <p>Is it possible to have a single flask app with routes on two different ports? My Flask app needs to listen for webhooks and due to some security biz it can't receive foreign POST requests on the default port. Is it possible to do something like this?</p>
  
  <pre><code>@app.route('/hook/&lt;sourcename&gt;', methods=["POST"], port=5051)
  def handle_hook(sourcename):
    print 'asdf'
  </code></pre>