Skip to content

Instantly share code, notes, and snippets.

@tommillard
Created July 21, 2013 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommillard/6048126 to your computer and use it in GitHub Desktop.
Save tommillard/6048126 to your computer and use it in GitHub Desktop.
Serve a local server over the net
STEP 1:Install localtunnel using RubyGems. Check the full README if you don't have Ruby or RubyGems.
$ sudo gem install localtunnel
STEP 2:Run your local web server on any port! Let's say you're running Apache on port 8080.STEP 3:Now run localtunnel passing it the port to share. The first time you run localtunnel you have to point to a public SSH key. Check the README if you need help. Here's an example:
$ localtunnel -k ~/.ssh/id_rsa.pub 8080
You should see something like this:
Port 8080 is now publicly accessible from http://8bv2.localtunnel.com ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment