How Do I Troubleshoot RPC API Remote Connectivity?

+1 vote

I'm trying to connect to the multichain server public IP with Postman.  I'm using Basic Authentication with the username and password and port from multichain.conf and sending raw JSON in the request body.  Postman says, "Could not get any response".

I can however connect to localhost loopback from the multichain server itself, so the credentials and port are correct:

> curl --user <userame> --data-binary '{"method":"listassets","params":[],"id":1,"chain_name":"testchain1"}' -H 'content-type: text/plain;' http://127.0.0.1:6834

Enter host password for user '<username>':

{"result":[{"name":"asset1","issuetxid":"05c4a6a4f7fdc2bfc358debcd79830d8c9576eaf8183f2f0519f952505a90dae","assetref":"170-267-50181","multiple":100,"units":0.01000000,"open":false,"details":{},"issueqty":1000.00000000,"issueraw":100000,"subscribed":false},{"name":"asset2","issuetxid":"7c1b4650ee014180aaf0ec058f8504ea84aec92127bc6a441e98976072a653ab","assetref":"667-266-7036","multiple":10,"units":0.10000000,"open":false,"details":{},"issueqty":100.00000000,"issueraw":1000,"subscribed":false},{"name":"asset3","issuetxid":"57ccfb8e6ecf408211bbfff32de854fa7379945c804eea02a5720d3c7af92833","assetref":"668-267-52311","multiple":10,"units":0.10000000,"open":false,"details":{},"issueqty":100.00000000,"issueraw":1000,"subscribed":false}],"error":null,"id":1}

How do I troubleshoot this?  Is there a configuration option I'm missing?

asked Feb 28, 2017 by Bullsear

1 Answer

+1 vote

Search this forum for rpcallowip which controls which external IP addresses are allowed to access the JSON-RPC endpoint of the node.

answered Mar 1, 2017 by MultiChain
...