nxd service does not start by default so its impossible to connect remotely until this is started. (nxd is the service that listens on port 4000).
workaround command from https://forum.nomachine.com/topic/nxd-does-not-start-from-systemd-but-does-from-nxserver-restart-2 :
"sudo /etc/NX/nxserver --startmode nxd automatic"
Pinned Comments
runnytu commented on 2021-02-20 13:44 (UTC)
Since nomachine 7.1.3-2 the default behavior of the package is StartNXDaemon Manual and FirewallConfiguration 0 on a new installation, if you want to change this, you need to modify PKGBUILD build options with your desire behavior:
BUILD OPTIONS
Set to y to enable nomachine service autostart
_autoservice=n
Set to y to enable firewall autorules
_autofirewall=n
END BUILD OPTIONS