Does anybody know how to get the Ethereum Test RPC to work on Cloud9? I can run truffle serve
and see the result on port 8080. But when I try testrpc -p 8081
, my truffle application can't access testrpc. I have also configured my truffle app.json to point to 8081 instead of the default 8545.
Edit:
When I try netstat -tulpn
as @Justin suggested, I get the following:
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 2926/python
tcp6 0 0 :::8080 :::* LISTEN 2906/node
tcp6 0 0 :::22 :::* LISTEN -
Edit: Ok, here is my new attempt at this:
testrpc --port 8081 --domain 0.0.0.0
This seems to properly start the testrpc client on the public interface- Update the app.json to contain
"rpc": { "host": "localhost", "port": 8081 } truffle deploy
- Update the app.json to contain
"rpc": { "host": "project-user.c9users.io", "port": 8081 } truffle serve
- Open browser to http://project-user.c9users.io
- Receive JavaScript error
Uncaught Error: CONNECTION ERROR: Couldn't connect to node http://project-user.c9users.io:8081.
The new 'netstat -tulpn' returns:
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 1194/python
tcp6 0 0 :::8080 :::* LISTEN 1581/node
tcp6 0 0 :::22 :::* LISTEN -
Edit:
I ran Wireshark on the browser communication and am getting this back when the JavaScript tries to communicate with testrpc
. I get a 302 Moved Temporarily
with location https://c9users.io:8081/_user_content/authorize?redirect=http%3A%2F%2Fproject-user.c9users.io%2F
. This issue seems to have gone unresolved at https://community.c9.io/t/url-to-running-code-gets-stuck-on-authentication/142.
netstat -tulpn
netstat -tulpn
I get this back:(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN 2926/python tcp6 0 0 :::8080 :::* LISTEN 2906/node tcp6 0 0 :::22 :::* LISTEN -
testrpc
listening to port 8081 from the client-side javascript of a node application that is listening to port 8080.