Cannot connect to seed node

0 votes
I've successfully installed and run the first node, but when i'm trying to connect the second node I get the error:

Retrieving network parameters from the seed node 112.38.91.75:5797 ...

Error: Couldn't connect to the seed node

I tried granting permission to the second server but again getting the below error:

multichain-cli chain1 grant 112.38.91.75 connect

{"method":"grant","params":["112.38.91.75","connect"],"id":1,"chain_name":"chain1"}

error: {"code":-5,"message":"Invalid address: 112.38.91.75"}

Could you let me know what I am doing wrong?
asked Jul 31, 2015 by anonymous
edited Sep 17, 2015

1 Answer

0 votes
I'm guessing the problem is something firewall-related. MultiChain sets a random "port" for peer-to-peer connections in a blockchain when it is created (port 5797 in the example you showed below) and I'm guessing this is blocked on the route between the two nodes you are trying to connect.

You will need to contact your network administrator about this, to see whether this port can be opened, or if you should use a different port. If the latter, when a blockchain is created, and before it is started running, you can change its network port in the default-network-port parameter in the blockchain's params.dat file.

Note also that the grant permission is assigned to a blockchain address, rather than an IP address, and the exact instructions are provided once you successfully can have the two nodes talking to each other, even before the second can actually fully connect.
answered Jul 31, 2015 by MultiChain
Thank you very much. Indeed it was the firewall settings (even though they are on the same network...). Works perfectly now.
...