title: I can't connect to a Flask server from other devices(=not from localhost)
body: <p>My goal is to build a RESTful API communication, between a python server and an android (java) client.</p>
  
  <p>I want to start with a client using the URL in chrome, and then with an android-java client.</p>
  
  <p>I have a very simple Flask server:</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/RESTfulExample/json/product/get")
  def hello():
      return "Hello !!"
  
  if __name__ == "__main__":
      app.run()
  </code></pre>
  
  <p>When this is localhost(ip=127.0.0.1) the communication between the server and the client <strong>works well</strong>.</p>
  
  <p>The problem is when I run the client <strong>from a different device</strong> (I tried with a phone and another computer):</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/RESTfulExample/json/product/get")
  def hello():
      return "Hello !!"
  
  if __name__ == "__main__":
      #app.run()
      app.run(host='10.0.0.54', threaded=True)
  </code></pre>
  
  <p>When I run the server and enter this url (<a href="http://10.0.0.54:5000//RESTfulExample/json/product/get" rel="nofollow noreferrer">http://10.0.0.54:5000//RESTfulExample/json/product/get</a>) in the chrome URL, After 2-3 minutes it returns an ERR_CONNECTION_TIMED_OUT error, or an ERR_ADDRESS_UNREACHABLE error.</p>
  
  <p>I don't have a clue about a solution for this simple problem. I will glad if someone here will help me with it.</p>
  
  <p>Thanks in advance !!</p>