I'm trying to make a connection to bitcoind testnet but it fails with 'curl: (7) couldn't connect to host'
It used to work, but now it does not. I can connect to non-testnet without issues.
I noticed that I have a new folder in my .bitcoin directory called 'testnet3' - I put my old certificate and key files in that new directory for ssl (although both ssl and non-ssl rpc is broken for me on testnet). The certificate and key file is in .bitcoin and .bitcoin/testnet and .bitcoin/testnet3 so I am sure the file is not the problem.
When I try to connect with or without ssl to testnet via curl I get the response in the first line of this post.
Here is my command to testnet which does not work: (change port to 8332 and the commands work for me with non-testnet)
non-ssl
curl --user bob --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;'
http://127.0.0.7:18332/ssl
curl --user bob --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;'
https://127.0.0.7:18332/ -k
Any ideas why this is no longer working? Can anyone else confirm rpc is not working for testnet? Am I missing something obvious here and just need a sanity check?
Bitcoin version from getinfo is 70003