Subspace cluster farmer --metrics-endpoints TCP port cannot be connected from other hosts

Issue Report

subspace cluster farmer --metrics-endpoints TCP port cannot be connected from other hosts

Environment

  • Operating System: Ubuntu 18.04
  • Pulsar/Advanced CLI/Docker: CLI

Problem

In my farmer server 192.168.0.40:
./subspace-farmer-ubuntu-x86_64-skylake-gemini-3h-2024-jun-18 cluster --nats-server nats://192.168.0.39:4222 --maetrics-endpoints 0.0.0.0:9081 farmer …

In server 192.168.0.40, telnet localhost 9081 succeed.
But in other hosts, telnet 192.168.0.40 9081 failed (192.168.0.40 firewall is configured to allow 9081 input and output)

I’m quite confident the reason is not the farmer, but network setup

Yes, its a firewall issue.
Fixed with the commands below:
sudo firewall-cmd --permanent --add-port=9081/tcp
sudo firewall-cmd --reload