Here is how to run a Flask local development server on your local machine and expose it to the public via a remote server you have control over. This uses SSH remote port forwarding which is a converse of local port forwarding described here: How to run a Django local development server on a remote machine and access it in your browser on your local machine using SSH port forwarding
$ sudo service sshd restart
$ ssh -v -R 50051:localhost:5000 email@example.com
$ python runserver.py localhost 5000
You can also achieve the same results by using the
RemoteForward in your
Host myremote User eliot HostName my.remotehost.com RemoteForward 50051 localhost:5000
localtunnel by Jeff Lindsay exposes your local development server without requiring a public remote server.
There are a bunch of good services that will do this more easily as well: http://john-sheehan.com/blog/a-survey-of-the-localhost-proxying-landscape
John, thanks for the great list. I'll remember that for the future. At the time I needed this, I actually was trying to expose my dev server at a specific URL that a third server was pointing at. I know my post fails to mention that.
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »