-
Notifications
You must be signed in to change notification settings - Fork 2
Connecting the UI to a remote daemon
Exposing a Chinilla daemon to the network is an advanced configuration. This allows other computers to communicate with the Chinilla daemon, including the ability to create transactions and send HCX.
If you do not know how to configure and properly secure a computer network do not use a remote daemon.
Never expose the chinilla daemon to the internet.
The following instructions are for a Linux-based farmer (daemon host) and Windows GUI (main node). The same concept applies to other OS combinations.
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 daemon. 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
To secure their connection, the GUI will need the daemon's certificates. Copy these files to the Windows machine:
~/.chinilla/vanillanet/config/ssl/daemon/private_daemon.crt
~/.chinilla/vanillanet/config/ssl/daemon/private_daemon.key
Place the daemon's cert files, copied earlier, in the following location:
~/.chinilla/vanillanet/config/ssl/ui/
~/.chinilla/vanillanet/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
The first thing to check is that the daemon's websocket URI shows up on the title bar. It should look like this:
Make sure there isn't a syntax error in config.yaml.
Double check that in the ui
section the crt and key paths are correct. It shouldn't point to the folder where the local certs are stored. It has to point to the folder where you copied the daemon's certs.
On the daemon host run sudo netstat -tulpn | grep 55400
or your OS's equivalent. It should show something similar to tcp 0 0 0.0.0.0:55400 0.0.0.0:* LISTEN 2925/chinilla_daemon
.
If you see 127.0.0.1
it means you haven't changed the daemon's bind IP address. The loopback address is not routable on the network. Double check that self_hostname: 0.0.0.0
is correct in the config. Also, make sure you have fully restarted the daemon:
chinilla stop all -d
chinilla start farmer
Run sudo ufw status | grep 55400
or your OS and firewall equivalent. You should see something like 55400/tcp ALLOW
.
Verify that the default port 55400 is not bound to VMWare Plugin or other service on the daemon host. If pre-bound, stop that other service or change the daemon_port
value in config.yaml
. netstat -tulpn
includes the process name of listeners. It should be chinilla_daemon
.
Chinilla Network - Green money for a digital world.
- Home
- Beginners Guide
- Install instructions
- Quick Start Guide
- FAQ - Frequently Asked Questions
- Pooling FAQ
- Pooling User Guide
- Chinilla Project FAQ
- Plotting Basics
- Alternate Plotters
- Plot Sizes (k-sizes)
- CLI Commands Reference
- Windows Tips & Tricks
- How to Check if Everything is Working (or Not)
- SSD Endurance - Info on SSD's and plotting
- Reference Plotting Hardware
- Reference Farming Hardware
- Farming on Many Machines
- Good Security Practices on Many Machines
- Chinillalisp Documentation (Official)
- Chinillalisp Notes
- Timelords and Cluster Timelords
- Release Notes
- RPC Interfaces
- Resolve Sync Issues - Port 8444