Connecting Metamask to test network on cloud9

meteor

#1

I am trying to connect metamask to a test network that runs on cloud9 but sadly nothing seems to work . Any suggestions? in cloud9 , I have installed Meteor and in the “private” folder , have initialized truffle . I have started truffle develop in the private directory. Truffle, when using testRpc in the private director behaves the way you would expect it to and also meteor starts properly but it seems like metamask cannot connect to the test network launched by truffle and I cannot link my meteor app to that network . I have followed the guidelines and put

if (typeof web3 !== 'undefined') {
  web3 = new Web3(web3.currentProvider);
} else {
  // set the provider you want from Web3.providers
  web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
}

in ./client/lib/lib.js and also in Metamask, set RemoteRPC as

http://my-app-name.c9users.io:8545/
can you please tell me what might be wrong with my setup? thanks a lot.