As a developer very frequently we need to test the things over internet that are under development and running locally on localhost for real time testing. To expose the localhost or local machine over internet we need to create tunnels, that are crearting redirect to local application. In respect to this there are few easy tools avaiable in the market that can quickly create this tunnel for testing and provides a subdomain url. Few of them are listed below.
- Ngrok is one the prominent tools that come with limited free access and for more use we have to go for premium. Please refer the ngrok getiing started document for quick setup https://ngrok.com/docs/getting-started.
Command to start a tunnel using ngrok: ngrok http http://localhost:8080 - Serveo is the one the best and quick tool, that doesnt required any installation. We just need to run a ssh command and our tunnel is ready. The only prequisite is we should have ssh installed in our machine, and I assume, every developer machine have this via putty, git, powershell, and many other tools. For quick reference and setup guide please refer https://serveo.net.
Serveo command to start a localhost tunnel: ssh -R 80:localhost:4503 serveo.net