Interacting with nodes using RPC

+1 vote
I have created my own web application to interact with multichain using RPC. On first node I am able to run the app, but when I configure it to second node am getting access denied error for interacting with multichani on second node.
asked May 22, 2017 by Amit

1 Answer

+1 vote

Please search this Q&A forum for rpcallowip – this is the setting which controls which IP addresses are allowed to access a particular node's JSON-RPC interface.

answered May 22, 2017 by MultiChain
I have added "rpcallowip=0.0.0.0/0" in node1's  chain1/multichain.conf and in node2's chain1/multichain.conf file, but still am getting following error

<HEAD><TITLE>Access Denied</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black"><H1>Access Denied</H1><HR>
<FONT FACE="Helvetica,Arial"><B>
Description: You are not allowed to access the document at location <em><TEXTAREA READONLY rows="2" cols="75">http://127.0.0.1:2750/</TEXTAREA></em></B></FONT>
<HR>
<!-- default "Access Denied" response (403) -->
</BODY>
You also need to restart the node.
I have restarted both the nodes still getting the same.
And you are using the right RPC password for each node when communicating with its API?
Solved it. In node 2 port was not listening, so could not able to connect it. Made port to listen and it worked.
Great - thanks for the update.
...