Ngrok service

Posted on September 5, 2018

Today I've discovered Ngrok, a neat service to expose local services to remote clients. Just sign-up and download its driver in order to use it by following the provided instructions.

I'm on MacOsX and I put the ngrok binary into Application folder. Then, I've created a softlink of it in order to run from the shell with ease.

This is where I've learned the command to make the softlink:

ln -s /Applications/ngrok /usr/local/bin/ngrok

Now I can run any ngrok command from anywhere. To test it just write:

ngrok help

or to expose a local web-server such as a running browser-sync instance, type:

ngrok http 3000

Then, follow the printed info within the shell to grab the public remote url and enjoy.