Multiple server on single machine

+1 vote
I created blockchain on machine and then i tried to connect it from different port:-

multichaind -datadir='/home/tms/Blockchain' -port=3001 -rpcport-3002 chain2@*.*.*.*:3000

it worked absolutly fine.

 

But when I am trying to get address on second node(on same machine), I am getting following errors

Command: multichain-cli chain2 -datadir='/home/tms/Blockchain' -rpcport=3002 -port=3001 getaddresses
error: couldn't connect to server

 

Command: multichain-cli chain2 -datadir='/home/tms/Blockchain' getaddresses
{"method":"getaddresses","params":[],"id":1,"chain_name":"chain2"}

error: incorrect rpcuser or rpcpassword (authorization failed)

 

Please help me out with this.
asked Jun 21, 2017 by Tarun

2 Answers

0 votes

Hi,

From the second node, you need to use the similar command "multichaind chain1@FIRST_NODE_IP:PORT".

This command will connect to the first node and sync the chain.

See details on

http://www.multichain.com/developers/creating-connecting/

 

Hope  it help you

answered Jun 22, 2017 by Roger
0 votes

There's an error in the command you entered:

-rpcport-3002

instead of

-rpcport=3002

answered Jun 22, 2017 by MultiChain
...