Welcome, Guest. Please login or register.

Author Topic: Is there any way to create a private Bitmessage network and how?  (Read 1595 times)

T410

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Say, using VMs or regular laptops is there any way to create a private BM network to test some features and study interactions of nodes.
« Last Edit: October 08, 2015, 12:39:14 PM by T410 »

Maarten

  • Newbie
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
Re: Is there any way to create a private Bitmessage network and how?
« Reply #1 on: November 05, 2015, 07:24:16 PM »
I guess yes.

Probably by editing the knownodes.dat file to bootstrap from a network node.
Or you could try a starfish-topology by using the trustedNode functionality, so all the VM's connect to one central node in your network.
 

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1262
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: Is there any way to create a private Bitmessage network and how?
« Reply #2 on: November 06, 2015, 11:58:55 AM »
You could also change all references to stream 1 in the code to another number.
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

ianco

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Is there any way to create a private Bitmessage network and how?
« Reply #3 on: March 24, 2017, 01:48:45 AM »
This is an old message, but is there a solution?

As far as I can tell (I'm just a newbie at bitmessage) you need to do the following:

1. Delete your .config/PyBitmessage/knownnodes.dat file

2. Comment out the well known IP's in src/defaultKnownNodes.py, and add a node from your local network (e.g. 172.17.0.2)

3. Edit .config/PyBitmessage/keys.dat and set "socksproxytype = xxx_none" (any value other than "none" or "SOCKS5") to disable DNS

When you startup bitmessage the indicator stays red, and you get a new knownnodes.dat file with just a single IP (which you can then edit).

I assume you can startup a second instance of bitmessage and connect to the first, and voila you have a private network.

(In bitcoin you can specify "bitcoind -regtest" which connects to a local, test network.  It would be nice it bitmessage had a similar feature.)

PS  There are some more detailed instructions on setting up the local network here:  https://github.com/ianco/bitmessage-dev

« Last Edit: March 27, 2017, 12:45:47 AM by ianco »