Sometimes you want to show your local running code to outside world, your friends or colleague. Here is one quick solution.
Install localtunnel using RubyGems.
Run your local web server on any port! Let’s say you’re running WEBrick on port 3000.
Now run localtunnel passing it the port to share.
The first time you run localtunnel you have to point to a public SSH key.
You should see something like this:
Port 3000 is now publicly accessible from abc.localtunnel