* Download [Ngrok](https://ngrok.com/) first & unzip it & enter its directory
```shell
$ chmod +x ngrok
$ cp ngrok /usr/local/bin
```
* Now try if everything is OK (in a directory where ngrok file doesn't exist). If you see Ngrok help, it means everything is OK.
```shell
$ ngrok -help
```
* Start a webserver redirect to localhost;
```shell
ngrok http -host-header=mysite.dev mysite.dev:80
```
* Alternatively you can directly redirect the traffic to localhost:80
```shell
ngrok http :80
```
* If you access the localhost on a different port, you also need to change the used port. Say you are using 8080;
```shell
ngrok http :8080
```