title: How can one configure flask to be accessible via public IP interface?
body: <p>I am unable to resolve any methods externally via their url once I set the SERVER_NAME or host property in flask. The following is my app init config:</p>
  
  <pre><code>flask_sqlalchemy import SQLAlchemy
  from flask.ext.cors import CORS
  __authors__ = 'DarkStar1'
  
  from flask import Flask
  
  app = Flask(__name__)
  app.config.from_object('config')
  app.config['DEBUG'] = True
  app.config['SERVER_NAME'] = '0.0.0.0'
  #app.run(host='0.0.0.0')
  CORS(app)
  
  db = SQLAlchemy(app)
  
  from oms import user_service, person_service
  </code></pre>
  
  <p>I can set the DEBUG param/property but attempting to set the host or SERVER_NAME results in all urls, http://&lt; hostname >:5000/test for example, resulting in 404s.
  Since the server is a remote dev server, I am able to tunnel and get 200s on all urls from flask via localhost. The port is enabled and the flask version I am working with is 0.10.1 on python 2.7.6. I have search and read docs to no avail.</p>