localtunnel – quickly expose a local webserver to the world

localtunnel is a pretty neat tool. It solves the problem of quickly exposing a web server to the internet without messing with deploying to a “test server” messing with a router/firewall and NATing/PortForwarding.

It works like this, assuming you have a webserver listening on port 8080

dbergert$ localtunnel -k ~/.ssh/id_rsa.pub 8080
This localtunnel service is brought to you by Twilio.
Port 8080 is now publicly accessible from http://52rq.localtunnel.com ...

Now browse to the URL and there is your publicly exposed webserver for that quick show or test.

More on localtunnel on its github page: https://github.com/progrium/localtunnel

1 Comments

  1. localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.

    Reply

Leave a Comment.