Multichain.conf Explorer and streams

+1 vote
I have an application that wishes to make use of the streams functionality. Accordingly my understanding is that when the stream is created on the primary node that the application is connecting to that the application would also need to connect to all other nodes to instruct / enable them to subscribe to the newly created stream.

Scenario:

Application server - IP 10.10.10.150

Node 1 - IP 10.10.10.200

Node 2 - IP 10.10.10.201 - also running Multichain Explorer on port 2750

The multichain.conf file of Node 1 contains "rpcallowip=10.10.10.150" and the application can connect all OK.

The multichain.conf file of Node 2 does NOT contain any "rpcallowip=" settings.

Given the above the Multichain-cli and Explorer work 100% on Node 2. However as soon as I add "rpcallowip=10.10.10.150" to the .conf file of Node 2 the CLI gives "cannot connect to server" errors on all commands and the Explorer also cannot connect. Am I missing something here as I would have thought that the .conf file of Node 2 would need 2 "rpcallowip=" settings as follows:

"rpcallowip=10.10.10.150" - for the application to connect and instruct the node to subscribe to the new stream and..

"rpcallowip=10.10.10.201" - for the Explorer to be able to connect

Please could you advise how the .conf file on Node 2 should be set so as to allow the CLI, my application and the Explorer to work correctly on Node 2...

Many thanks
asked Feb 17, 2017 by LenH

1 Answer

+1 vote

It sounds like you might need to add rpcallowip=127.0.0.1 as well, to allow local API connections.

But you may also find an easier solution, to add autosubscribe=streams to the .conf file. That way every new stream will automatically be subscribed to.

answered Feb 17, 2017 by MultiChain
+1 for the  autosubscribe=streams in the .conf file suggestion.
...