Skip to content
easy setup to get a tunnel SSH to open your dev environement to the world.
Find file
#1 Compare This branch is 6 commits ahead of 3on:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Web tunnel on dotCloud

If you ever need to share you local web server to the world, here is an easy way to do that using dotCloud.

There are three steps:

  1. Create the dotCloud application
  2. Open an SSH tunnel to the dotCloud server
  3. Access your local web server using the dotCloud URL

Create the dotCloud application

dotcloud create webtunnel

dotcloud push webtunnel

To open a tunnel

You need to open an SSH tunnel on the machine your local webserver is running to the dotCloud server.

First determine your $HOST and $PORT by looking at the ssh url by doing dotcloud info webtunnel.proxy | grep "ssh://". It is formatted as ssh://dotcloud@$HOST:$PORT.

In the command below, replace localhost:8080 to point to your webserver. If you don't have any just run python -m SimpleHTTPServer to get one running on port 8080. Do not change port 8042.

ssh -i ~/.dotcloud/dotcloud.key -p $PORT dotcloud@$HOST -R 8042:localhost:8080

Access your application

Your local web server should now be accessible at the URL given after deploying the dotCloud application.

This Fork

This fork is maintained by the folks at AutoRef

Something went wrong with that request. Please try again.