Coder Social home page Coder Social logo

localtunnel's Introduction

localtunnel – instant public tunnel to your local web server

Install

To get the dependencies if you don’t have them, type:

sudo apt-get install ruby ruby1.8-dev rubygems1.8 libopenssl-ruby

Now you can install localtunnel with RubyGems:

sudo gem install localtunnel

or to get the source:

git clone http://github.com/progrium/localtunnel.git

Usage

localtunnel [options] <localport>
  -k, --key FILE    upload a public key for authentication

Localtunnel is a client to a free and open source reverse tunneling service made specifically for web traffic. It’s intended to be used to temporarily expose local web servers to the greater Internet for debugging, unit tests, demos, etc.

This is how you make your local port 8080 public:

$ localtunnel 8080
Port 8080 is now publicly accessible from http://8bv2.localtunnel.com ...

Using localtunnel is comparable to using SSH reverse/remote port forwarding on a remote host that has GatewayPorts enabled, but without all the configuration or the need of a host. The localtunnel command works with a server component that is running on localtunnel.com, which is provided as a free service.

If have never run localtunnel before, you’ll need to upload a public key to authenticate. You do this once:

$ localtunnel -k ~/.ssh/id_rsa.pub 8080

After that, you shouldn’t have to use -k again.

Localtunnel can be started before or after the local web server. It tunnels through to the url given in that status message “publicly accessible from…” for as long as the command is running. The tunnel is closed if the command exits.

Contributors

andyl (andy@r210.com) 
Charles Merriam (charles.merriam@gmail.com) 
Hunter Gillane (hunter.gillane@gmail.com) 
Michael Sofaer (msofaer@pivotallabs.com) 
Jeff Lindsay (progrium@gmail.com)

License

MIT

localtunnel's People

Contributors

progrium avatar andyl avatar merriam avatar gnarargs avatar nirvdrum avatar pirosb3 avatar

Stargazers

Vaibhav Bindroo avatar

Watchers

Vaibhav Bindroo avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.