Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Expose localhost servers to the Internet
Go
branch: prototype

This branch is 1 commit ahead, 182 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
client.py
server.py

README

LocalTunnel
===========

This is the vision:

   $ localtunnel 8080
   http://d8w72a.localtunnel.com is now forwarding to your local port 8080...

Wouldn't that be magical? Compare to http://novas007.livejournal.com/42971.html

Currently the focus is the forwarding plumbing. Works, but not so great with many concurrent requests.

It should probably be modeled more after this:
http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.1.0/twisted/conch/ssh/forwarding.py

To try it out:

1) Start the server.
			python server.py
			
2) Point the client at a local port serving HTTP. 
			python client.py 8080
			
3) Use curl to request a page from your HTTP through the server.
			curl http://localhost:8999/
			
Browsers work, but it will choke trying to serve up all your assets.
Something went wrong with that request. Please try again.