Skip to content

Instantly share code, notes, and snippets.

@ilgityildirim
Created January 13, 2018 19:36
Show Gist options
  • Save ilgityildirim/2e736279cc628db674e9eb3145f8c5a7 to your computer and use it in GitHub Desktop.
Save ilgityildirim/2e736279cc628db674e9eb3145f8c5a7 to your computer and use it in GitHub Desktop.
Tunnel your local work to the internet using Ngrok
  • 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
@vinvin27
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment