Skip to content

Creating A MuWire Network

danrobi11 edited this page Nov 10, 2020 · 6 revisions

This document describes how to set up a MuWire network of your own. All you need is a computer with internet connection. I operate the current MuWire network from my home, using residential broadband.

The Hostcache

The Hostcache is the entry point to the MuWire network. Detailed instructions on running one are available at the Hostcache page. The first time you run the hostcache it will print out a long string which is it's "B64" address. Copy paste that string and put it in the file core/src/main/groovy/com/muwire/core/hostcache/CacheServers.groovy. See the pattern of existing hostcaches on how to add a new one. That is all!

Building signed installers

To build all-in-one bundles of MuWire which contain all necessary dependencies (Java, I2P, MuWire) look at the muwire-pkg project. To build all-in-one bundles of MuWire which contain all necessary dependencies (Java, I2P, MuWire) look at the muwire-pkg project.

It is recommended to sign your installers. To do so you will need to purchase signing certificates. For windows, you can purchase an "Open Source Signing Certificate" from Certum. For Mac, you need to purchase one from Apple. The Linux AppImages can be signed with a GPG key.

Customisations

The Packaging wiki page describes some ways in which your MuWire distributable can be customized if you wish to do so. Separate network If you wish your MuWire network to be completely disjoint from the main one you need to change the handshake string so that your nodes will not be able to connect to the ones I build. To do so you need to change the following things:

  • in core/src/main/groovy/com/muwire/core/connection/ConnectionAcceptor.groovy in the processMuWire method to the connection string you like to use
  • in core/src/main/groovy/com/muwire/core/connection/ConnectionEstablisher.groovy in the connect method change the connection string to match the on you put in the other file.
Clone this wiki locally