Open port for Flask

Hello there!
I would like to create some calleable methods on IX15 so I can passdown some info to my xbee nodes. For that I take a look into Flask.
I installed via pip, created a hello word code, exeuted the program.
In pycharm run tool windo I can see that the Flask is running, demo code is executed, but the URL, where the flask should be is not avaible.

Should set up something in the ix15 settings? Or what am I missing? Should I use a different aproach?

Thank you,

from flask import Flask

flaskapp = Flask(__name__)

@flaskapp.route("/")
def hello_world():
    return "<p>Hello, World!</p>"


if __name__ == '__main__':
    flaskapp.run(host="192.168.50.20", port="5000", debug=True) #the IP address of the ix15 which is given by our lan router
  

I would suggest you look at the AZURE Send/Receive examples found in PyCharm to see how to send and receive data via the Ethernet/Cellular connection to an external server.

You can also use the examples in the XBee Receive Data and Send data examples in PyCharm as well.

Azure send and receive examples uses azure as a backend. I would like to elliminate any third parties.
That why I would like to host a python code using flask handling a the communication.
The sample flask application is running, based on run window, but my feelig that I should open a port for it to gain access from the browser.