Cannot connect to server.

+1 vote

Node 1 : Windows machine.

Node 2 : Ubuntu machine.

I tried to give persmission to the second as specified in the documentation by command

"multichain-cli chain3 grant 1fJan1FJVsRJY2mwAZ7BRZQDNJY2RnUdeFGfo connect,send,receive"

but i get an error stating: could'nt connect to server. Please enlighten on this and help.

Firewall is off in windows and cmd is in admin mode.

 

asked Jul 5, 2017 by Kishan Vikani
That is what i have done but after granting the permission from the 1st node, when i run the block chain using the command "multichaind chainName -daemon", even the second server starts running and gets initialized and was retrieving parameters but after few seconds it again showed a message to grant permission and the server terminated. Why does this happen ?
I tried giving permission 3-4 times but the same thing happens the second node terminates

1 Answer

+2 votes

It sounds like multichaind is not running on the server where you issued that command.

answered Jul 5, 2017 by MultiChain
But I had it running on my first node. I think I closed the running server by pressing Ctrl+C and then entered this command. How do i give permission to second node while running the chain on 1st node ? This may sound very basic but could you help me out on this ?
In Windows open up a second command-line window so you can run multichain-cli to issue commands while multichaind is still running.
This actually worked. Thanks for the help but when i granted the permission from first node and again tried to connect from second node using the command "multichaind chainName -daemon", the blockchain was up successfully and was retrieving parameters but after few seconds it again showed a message to grant permission and the server terminated. Why does this happen ?
After the second node gives you its address, you need to grant connect permission to that address on the first node.
That is what i have done but after granting the permission from the 1st node, when i run the block chain using the command "multichaind chainName -daemon", even the second server starts running and gets initialized and was retrieving parameters but after few seconds it again showed a message to grant permission and the server terminated. Why does this happen ?
I tried giving permission 3-4 times but the same thing happens the second node terminates
It sounds like the second node is trying to connect to another node which does not believe it has connect permissions. I suggest starting again with a fresh blockchain, and posting a full transcript here of the steps you're taking (and the responses you get) on both nodes, so we can see if we can help.
Exactly I did the same mistake then I opened another instance of CMD and then it gives the permission... It means that do not close the cmd window after running -daemon command... I think I am understanding it right
...