Exposing localhost to outside world 

I come across something really useful while working on my latest project. If you want to show something you are working on to anyone in the world without deploying your code you can use localtunnel.

A very useful tool to expose a port on your local machine to the outside world. This means you can show your local development of a website/service to anyone with an internet connection.

Github repo: https://localtunnel.github.io/www/

  • Install NPM: sudo apt install npm
  • Install localtunnel: sudo npm install -g localtunnel
  • Install NODE JS: sudo apt-get install nodejs-legacy
  • Run the following with your port of what you want to expose: sudo lt –port 9000 -s subdomainnamehere

Leave a Reply

Your email address will not be published. Required fields are marked *