Share a web service on your local development machine with Localtunnel
I was testing Jenkins and as it doesn’t support localhost addresses I found Localtunnel, which, and I qote,
allows you to easily share a web service on your local development machine without messing with DNS and firewall settings.
Localtunnel will assign you a unique publicly accessible url that will proxy all requests to your locally running webserver.
You can install it via npm:
npm install -g localtunnel
Then, start your project on some local port (for example 1337), and make sure all works well locally. Now, request a tunnel to your local server:
lt --port 1337
And you should get an output like:
your url is: https://awesome.localtunnel.me
You can use this link now and any requests to that url will be routed to your service on port 1337.
Leave a Comment