0

So I've currently got a flask app that I'm using to run a testing app, (this works on local host) but I cant work out how to launch it so I can test the connectivity from other devices (public).

can someone explain how I can go about launching it, or at least point me in the right direction to some documentation about how to make it public. I don't think I'm either port forwarding it correctly or i need a web server like xampp to run it.

thanks

3 Answers3

1

to make an application works with public host you have to make sure enabling port forwarding in your modem device, you can etablish a cnx with the nginx server

Ayoub Benayache
  • 1,046
  • 12
  • 28
0

Have a look at Ngrok.

It connects to the ngrok cloud service which accepts traffic on a public address and relays that traffic through to the ngrok process running on your machine and then on to the local address you specified.

Basically you can access your local server from outside your network without port forward your router, it's good for testing and monitoring your apps.

smallwat3r
  • 1,037
  • 1
  • 8
  • 28
0

If you change the ip address of the flask server from the default 0.0.0.0 to your the ip address of your computer (eg 192.168.1.2) the other clients on your local network can connect.

If you want to expose your app the whole of the internet you should get a host that (eg try heroku.com) that has a fixed ip assigned and is reachable from the internet.

faebser
  • 139
  • 1
  • 11