Localtunnel: Show localhost to the rest of the world
progrium.com
progrium.com
When I get back from vacation, I'm going to focus on releasing v2, which has been in the works for a while. It will continue to be a free service supported by me and hopefully someday the community. Twilio is mentioned, but only because I worked for them recently. Their designer also threw together the website design.
I also want to point out that with version 2 coming out, I'd love input on how to cultivate more community involvement and contributions. I want localtunnel to live for as long as people want to use it, but I will probably move on from it much sooner.
Anyway, thanks again!
$ ssh -N <user>@<yourserver> -L <localport>/localhost/<serverport>
so if I'm bob at bobsbookwonderland.com, and I run a test server there on its localhost 5000 that I want to access from home, I'd type (from home):
$ ssh -N bob@bobsbookwonderland.com -L 5000/localhost/5000
and then on my local machine I'd just point my web browser to localhost:5000 as if I were running the test server locally.
$ ssh -N -L <localport>:localhost:<serverport> <user>@<yourserver>
and $ ssh -N -L 5000:localhost:5000 bob@bobsbookwonderland.com
(the : is standard syntax used on platforms, including OSX and PuTTY, and some platforms don't support getopt arguments after the first non-flag argument) -g Allows remote hosts to connect to local forwarded ports.
if you want to allow non-local connections.Last time I used localtunnel I eventually figured out I needed to run "sudo apt-get install ruby1.9.1-dev" first.
The only caveat is that some gems require compilation of native C extensions, which if you don't regularly compile things on your machine may require you to install lots of extra stuff (especially on the Mac).
It's not a problem for me because Ruby is my bread and butter, so of course I have rvm (or rbenv) installed at all times. But as I user I think it's unacceptable to have to do a manual installation just to run extremely simple programs. It'd be nice if the community were more responsive to fixing the problems faced by the package manager maintainers.
All of the RubyGems developers are volunteers—as are most (if not all) of the various package manager maintainers. The way that Debian broke Ruby in the past (I don't know if it still does, but I have heard reports that it's better)…was unconscionable. (This mostly because Debian tried to treat RubyGems like C-based libraries, which are hard to have multiple usable versions of; RubyGems was based on the idea that you might need multiple usable versions of a package around.)
If you want a strange Python package or a certain version, you're better off on Debian and Ubuntu just installing pythonbrew to keep a compiled python in your home folder.
My original complaint though is that people are using "gem install" as the sole documentation for installing a general purpose command-line tool. I'd rather not even know it's written in Ruby (I just want to install it and use it) - instead, I need deep Ruby knowledge just to get the thing running.
If YOU read the content that was linked, you'd see there is a very long README targeted at people who aren't Ruby developers.
Also, if you haven't checked out PageKite in a while, the most recent 0.5 release fixes a lot of minor issues the older versions had, it may be worth another look, especially if folks are using Windows or aren't based in "the west" (we recently deployed a relay server in Asia, in addition to our American and European relays).
It just happens that the use case for web developers overlaps and that is what folks seem to care about around here. :-)
I don't know how much bigger that is than your vision, since I can only guess what your vision is. :-) I can guess based on your design, that until now you haven't cared much about people using localtunnel for anything except dev testing.
If I were starting from scratch today, I'd base off websockets instead of the HTTP chunked encoding as I did, but other than that I have been very happy with it.
The popular alternative was https://showoff.io but this is a payed service. I believe local tunnel is free because it is sponsored by twilio.
I also recommend http://xip.io for sharing within the same network.
We are also quite open to the idea of supporting other protocols, but it turns out relatively few Internet protocols are amenable to "name based virtual routing" (the same thing as name based virtual hosting, except routing connection streams by name instead of serving local content).
It's just so nice to be able to use ssh and rsync and git and all the other standard tools to interact with mobile and virtual devices, no matter what kind of network connection they have. The .deb/.rpm packages just make this feature part of the OS as far as I am concerned.
Deleted comment