- Download Ngrok first & unzip it & enter its directory
$ 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.
$ ngrok -help
- Start a webserver redirect to localhost;
ngrok http -host-header=mysite.dev mysite.dev:80
- Alternatively you can directly redirect the traffic to localhost:80
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;
ngrok http :8080
hello,
Im using : ngrok http -host-header=mysite.dev mysite.dev:80
but on remote desktop all statics files are not found ERR_NAME_NOT_RESOLVED