this is very likely a firewall problem. Try disabling the firewall or the antivirus program on the server computer. If it is that, we will later see how to selectively enable the ports that are used by NoMachine.
Please also tell me the exact Windows version you are running, the antivirus program or any detail that can be useful. We’ll investigate what we need to do to set up the ports automatically in this particular configuration.