How to get the address for grant connect in multichain demo?

+2 votes
Hello:
I am new to multichain, now I have downloaded and want to set up multi-chain demo on my Windows 10 PC, I want to use the same machine for testing first. I downloaded the version 2.3.1 for Windows, I run the following command:

D:\multichain-windows-2.3.1>multichaind chain1 -daemon

MultiChain 2.3.1 Daemon (Community Edition, latest protocol 20013)

Looking for genesis block...
Genesis block found

Other nodes can connect to this node using:
multichaind chain1@172.22.160.1:4801

This host has multiple IP addresses, so from some networks:
multichaind chain1@192.168.1.129:4801

Listening for API requests on port 4800 (local only - see rpcallowip setting)

Node ready.

Now, I try to connect from the same machine.
I know I should use datadir to launch multichaind in the same PC, but there is an imporant issue which I have to know is what is the address for grant connect command.
Someone said I have to ask Adress admin, but I am the only person to use this multi-chain nodes, I can not ask anyone else.
I want to know how to get the address for grant connect command.
Or can I run multi-chain CLI to generate one address?
Thanks
asked Nov 27, 2022 by zydjohn

1 Answer

0 votes

When you run the second MultiChain instance, using a specific datadir, for the first time, it will tell you the address that needs to be granted connect permissions.

answered Nov 27, 2022 by MultiChain
Hello:
I have done some testing, and I made some progress.
From the single node, using different datadir, I can run 2 nodes and I can see
the address, and issue grant address connect, send, receive.
So, for the localhost, this part works.
Thank you for your help.
However, when I tried to run from another Linux (Kali) virtual machine
on the same network. I got the following output:



node1> multichaind chain1 -daemon

MultiChain 2.3.1 Daemon (Enterprise Demo Edition, latest protocol 20013)

NOTE! THIS DEMO VERSION CAN BE USED DURING THE FIRST 3 MONTHS OF A BLOCKCHAIN.

Starting up node ...

Looking for genesis block...
Genesis block found

Other nodes can connect to this node using:
multichaind chain1_clone@10.0.2.15:9699

Listening for API requests on port 9699 (local only - see rpcallowip setting)

Node ready.

On node2, I have done  this:
node2> multichaind chain1@10.0.2.15

MultiChain 2.3.1 Daemon (Enterprise Demo Edition, latest protocol 20013)

NOTE! THIS DEMO VERSION CAN BE USED DURING THE FIRST 3 MONTHS OF A BLOCKCHAIN.

Retrieving blockchain parameters from the seed node 10.0.2.15:9699 ...
Error: Couldn't connect to the seed node 10.0.2.15 on port 9699 - please check multichaind is runing at the adderss and that your firewall settings allow incoming connections.

I suspect that there could be network issue.
So I become root and open TCP port 9699, 9698.
I can ping IP: 10.0.2.15; but I am not sure if the network settings are correct.
Maybe I should create another IP, like: 192.168.100.1 for node1 and 192.168.100.2
for node2. But I will try again.
However, with the ability to run multichain in the single node with different
datadir, I can go one step further.
Please advise on how to create some fake tokens and send to the address.
Thanks,
I recommend working through the 'Getting Started' guide which will provide a tour of all MultiChain's basic functionality. There's no problem using it with two nodes running on the same computer, via the datadir mechanism.

You can probably just jump straight to section 7, adding the prefix "multichain-cli chain1 " to each command, since Windows does not support interactive command line mode.

https://www.multichain.com/getting-started/
Hello, I have done all the tasks from get started.
Thanks for your good advices.
...