title: Access Flask App remotely, not just from 127.0.0.1
body: <p>I am trying to allow remote connections to my FlaskApp. The scope is to have my FlaskApp running for example on the cloud and me being able to access data from my phone ecc.
  But I can only run it for Local Host.</p>
  
  <p>I tried with following code:</p>
  
  <pre><code>from flask import Flask, request
  app=Flask(__name__)
  MY_IP="" #server IP:port
  
  @app.route("/testing")
  def test():
     return "TEST"
  
  app.run(MY_IP, debug=True)
  </code></pre>
  
  <p>But I keep getting following error:</p>
  
  <pre><code>line 795, in run_simple
      s.bind(get_sockaddr(hostname, port, address_family))
  socket.gaierror: [Errno 11001] getaddrinfo failed
  </code></pre>
  
  <p>Would be really kind if someone could help me out. I also tried entering just the IP address instead of the IP:PORT but i still kept getting that error.I also read using 0.0.0.0 could help, but didn't work either</p>