Viewing localhost on iPhone

Shows how to view your localhost website from an iPhone during development using the ngrok tool (Windows).<!–more–>

First download ngrok from ngrok.

Now open a command prompt and enter <code>ngrok.exe http 4458 -host-header=”localhost:4458″</code> (replacing 4485 with your port number). The host header isn’t always required, but in my case I needed to include it.

The tool will output a URL to browse to. Visit this URL and confirm the tunneling is working.

That’s it!

Tags: ,

Leave a Reply