ngrok creates a tunnel from the public internet (http://ift.tt/1mkAOOu) to a port on your local machine. You can give this URL to anyone to allow them to try out a web site you're developing without doing any deployment. ngrok captures all traffic through the tunnel.
Full article