Expose your local web server to the Internet
Go to file
Jeff Lindsay e15cb9e96a Merge pull request #46 from kevinburke/master
Link to documentation about how to create public keys
2012-03-11 18:56:18 -07:00
bin Explain the ./localtunnel_callback hook in the banner and execute CWD/.localtunnel_callback if it exists 2012-02-21 06:16:54 -08:00
lib update verb 2012-03-11 18:52:16 -07:00
.gitignore ignoring RubyMine .idea directory 2011-01-19 17:20:58 +08:00
Manifest reorganizing ruby files and gem stuff 2011-05-02 19:54:54 -07:00
README.rdoc Update rakefile (rdoc= is removed) and update readme 2012-02-21 06:27:47 -08:00
Rakefile Update rakefile (rdoc= is removed) and update readme 2012-02-21 06:27:47 -08:00
server.py use epoll 2010-08-20 15:40:05 -07:00

README.rdoc

= 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 you 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.

Localtunnel will search for the file .localtunnel_callback in the CWD.
If it exists, it will execute the file with one argument, the public 
endpoint, when the tunnel is opened. This is useful for starting other
tools or processes that need the name of the endpoint.

== 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