customize your own port

+2 votes
Hi, i'm just wondering whether i can assign the port that i want when creating a new chain, instead of getting the multichain to randomly generate one for you. Thanks.
asked Feb 7, 2017 by anonymous

1 Answer

+1 vote

Yes, you have a couple of ways of doing this:

  • Pass a -default-network-port=12345 command-line parameter to multichain-util when preparing the chain.
  • Modify the params.dat file between calling multichain-util and running multichaind for the first time.
More information on customizing blockchain parameters is provided here: http://www.multichain.com/developers/blockchain-parameters/
 
Note also that individual nodes can use a different port if they choose to, via the port runtime parameter: http://www.multichain.com/developers/runtime-parameters/
answered Feb 7, 2017 by MultiChain
...