title: Flask server not visible from my public ip address
body: <p>I'm trying to run a flask server on my desktop PC that is publicly available on the internet. I've done the following:</p>
  
  <ul>
  <li>Set up  a static IP address: 192.168.1.11 (<a href="http://i.imgur.com/Z9GEBYV.png" rel="noreferrer">http://i.imgur.com/Z9GEBYV.png</a>)</li>
  <li>Forwarded port 33 on my router to my static ip address (<a href="http://i.imgur.com/KGNQ2Qk.png" rel="noreferrer">http://i.imgur.com/KGNQ2Qk.png</a>)</li>
  <li>Setup flask to use my static ip and port: 33</li>
  </ul>
  
  <p>I'm using the following code as a test webserver</p>
  
  <pre><code>from flask import Flask, request, redirect
  app = Flask(__name__)
  
  @app.route("/")
  def hello_world():
      return "Test 123 "
  
  if __name__ == "__main__":
      app.run(host="0.0.0.0", port="33")
  </code></pre>
  
  <p>When I open my browser to: <a href="http://192.168.1.11:33/" rel="noreferrer">http://192.168.1.11:33/</a> the page displays properly, I see "Test 123"</p>
  
  <p><strong><em>My problem comes when trying to connect to my webserver from my public ip address</em></strong> When I open my browser to <a href="http://xx.xxx.xxx.xx:30" rel="noreferrer">http://xx.xxx.xxx.xx:30</a> (my ip address) all I see is "this site can't be reached, xx.xxx.xxx.xx refused to connect"</p>
  
  <p>I've looked up all the stack overflow answers, I've done the following:</p>
  
  <ul>
  <li>Turned off windows firewall</li>
  <li>Changed host from "192.168.1.11" to "0.0.0.0"</li>
  <li>Tried a different port</li>
  </ul>
  
  <p>screenshot of code running and error shown: <a href="http://i.imgur.com/a05GvEs.png" rel="noreferrer">http://i.imgur.com/a05GvEs.png</a></p>
  
  <p><strong><em>My question is: What do I need to do to make my flask server visible from my public ip address?</em></strong></p>