Skip to content

Connecting the UI to a remote daemon

Don Kackman edited this page Mar 20, 2021 · 20 revisions

On the daemon host

Expose the daemon to the network

In config.yaml, change self_hostname from localhost to 0.0.0.0. This binds the daemon to all IPv4 addresses on the local machine.

Next, open the port that the daemon is listening on (55400 by default). The UI assumes that the daemon is already running and it will not attempt to start a remote host. Using ufw and restricting traffic to just the UI's host:

sudo ufw allow from <IP of UI machine> to any port 55400 proto tcp

Copy the daemon's cert files

To secure their connection, the UI will need the daemon's certificates. Copy these files to the UI machine:

~/.chia/<currentvesion>/config/ssl/daemon/private_daemon.crt
~/.chia/<currentvesion>/config/ssl/daemon/private_daemon.key

On the UI host

right now (03/31/2021) this only works when the CHIA_ROOT environment variable is set to the correct location of ~/.chia/<currentvesion>/

Place the daemon's cert files, copied earlier, in the following location:

~/.chia/<currentvesion>/config/ssl/ui/
~/.chia/<currentvesion>/config/ssl/ui/

Find the ui section in config.yaml and specify the following settings:

daemon_host: <name or IP of the daemon host>
daemon_port: 55400
daemon_ssl:
  private_crt: config/ssl/ui/private_daemon.crt
  private_key: config/ssl/ui/private_daemon.key
Clone this wiki locally