Using the Tropo Web API behind a firewall with Tunnlr
February 24th, 2010 by Jason GoeckeMany times we find ourselves sitting behind networks without the ability to open a TCP port to hack on our web services. This may be at a coffee shop, a corporate network or that guest network you just connected to at your developer meetup. We have a solution for that.
In steps Tunnlr, a great little service by the folks at ElevatedRails. With Tunnlr, you are able to create a reverse SSH tunnel to a port on your computer. While they do have a plug-in for Ruby on Rails, this may be used to redirect traffic to any application running on a port. In this example I will walk you through how to do this using another Ruby web framework, Sinatra.
The first step is to sign-up for a Tunnlr account. You may select a single plan for USD$5 per month, but you get a 90-day free trial with no credit card required at sign-up. Once you have signed-up and verified your account, they will then provide you with a URL to use to access your tunnel. You will also need to provide them with your public SSH key in your account.

Once you have this setup, then you need to create the tunnel from your computer. I created a shell script that I may run each time I want to have a tunnel.

Then, fire up your tunnel in a terminal window. 
Now that the hard part is over, write a Sinatra (or any others) app using our Tropo-WebAPI-Ruby gem and run it on the port you specified in your shell script above.

Thats it, now your Tropo WebAPI app is ready to run behind any firewall. Now you may demonstrate Tropo at that next developer meetup!
Related posts:
- WebAPI Tips & Tricks
- Ruby on Rails Example for Tropo Web API without port forwarding!
- Send a Fax with your Voice!
- New tropo-webapi-ruby Gem Released
- How-To: Sending an SMS using WebAPI
Tags: elevatedrails, gem, Ruby, sinatra, ssh, ssh tunnel, tropo webapi, tropo-webapi-ruby, tunnlr, webapi

Using the Tropo Web API behind a firewall with Tunnlr – http://bit.ly/dAQ1Er
This comment was originally posted on Twitter
Using the Tropo Web API behind a firewall with Tunnlr – http://bit.ly/dAQ1Er (via @tropo) Great tool for meetups!
This comment was originally posted on Twitter
@stuboo With Tropo we use Tunnlr to slice through firewalls w/o opening ports. Have a look: http://bit.ly/cJndlm
This comment was originally posted on Twitter