How can I easily expose my local-server via https?

Problem 😱

You would like to expose securly πŸ”“ your local server on the web?

Default route for this would be to:

  • configure https

  • configure your router

  • etc.

Solution πŸ€“

πŸŽ‰ πŸŽ‰ πŸŽ‰ ngrok πŸŽ‰ πŸŽ‰ πŸŽ‰

Secure tunnels to localhost

Install - link or on osx: brew cask install ngrok


ngrok http 8000

ngrok by @inconshreveable                                                                                                                                    (Ctrl+C to quit)

Session Status                online
Version                       2.2.8
Region                        United States (us)
Web Interface       
Forwarding           -> localhost:8000
Forwarding           -> localhost:8000

Connections                   ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00

You can now enter your https or http external url and hit your own server. πŸŽ‰


ngrok comes with dashboard

open http://localhost:4040


reply requests


enable basic auth

ngrok http 8000 -auth "user:password"

you will need to have account for this feature visit auth

file based config

nano ~/.ngrok2/ngrok.yml

    proto: http
    addr: 8000

it will start service:

ngrok start service


interested? links:


By @PythonicNinja in
Tags : #devops, #linux, #webdev,