What you’ll need
- Python and Flask installed.
- An ngrok account.
- Your ngrok authtoken.
Option 1. Use the ngrok agent
To share a local Flask development server with someone else, run:SERVER_NAME and APPLICATION_ROOT in your Flask app configuration to the values provided by ngrok.
See the Flask docs for more information.
For users on the latest MacOS, there is an issue where the default port 5000 (and 7000) is used by Apple AirPlay Receiver.
You can use a different port for your Flask app or disable the Apple AirPlay receiver by disabling it in System Settings > General > AirDrop & Handoff > AirPlay Receiver.