December 10, 2021 at 19:13 #36635
I am having two remote servers, both running Archlinux and NoMachine. Since couple hours, I can not connect to them – I get the following error message:
“The remote host ‘xxx.xxx.xxx.xxx’ refused to establish a network connection on port ‘4000’. Please verify that NoMachine is correctly installed and listening on the port where you are trying to connect, and that incoming traffic is not being blocked by a firewall or NAT.”
The servers are up and running, I can both ping and ssh into them.
When I run the commands status/restart through SSH, I get the following messages on the server:
sudo /etc/NX/nxserver –status
NX> 111 NoMachine server has been shut down.
NX> 162 Disabled service: nxserver.
NX> 162 Disabled service: nxnode.
NX> 162 Disabled service: nxd.
sudo /etc/NX/nxserver –restart
NX> 162 Service: nxserver already disabled.
NX> 162 Service: nxnode already disabled.
NX> 162 Service: nxd already disabled.
I already restarted one of the servers, but it did not help.
Can you please advise, how can I fix this issue? It triggered on both remote servers simultaneously, at the same time.
Below some extra information.
Local NoMachine product & version: 6.16.1 (free)
Server NoMachine product & version: 7.7.4-1 (free)
Connecting to remote server (no physical display)
Local OS: Linux Mint 20.2
Server OS: Archlinux (Kernel: 5.15.7-arch1-1)
Local desktop version: Xfce/Xfwm4
Server desktop version: LXDE/OpenboxDecember 16, 2021 at 18:06 #36694BritgirlKeymaster
There’s something wrong with your configuration maybe? Try removing completely and install again.
sudo /usr/NX/scripts/setup/nxserver –uninstall && sudo rm -rf /usr/NX /etc/NX /var/NX .nx
We don’t actually support Arch but we did check on the fly. Since Arch is a rolling release and it’s possible that a new system update might have broken something, we downloaded it to make sure, and installed it with the same set up as you, and were able to connect.January 5, 2022 at 13:30 #36924
Unfortunately I was not able to fix this with reinstalling NoMachine, so I did reinstall the entire OS from scratch and installed NoMachine freshly and it works fine.
Although I am having a new issue, with this newly installed config: previously I was able to set practically any display resolution for the remote server, but now the maximum available, selectable display resolution is a low value and can not change it to match the client resolution. I am going to post this as a separate thread, to ask for some further help.January 5, 2022 at 15:53 #36926BritgirlKeymaster
so I did reinstall the entire OS from scratch and installed NoMachine freshly and it works fine.
So it seems something was not quite right with your Arch install. Thanks for letting us know.
previously I was able to set practically any display resolution for the remote server
You will find some useful tips and information here:
Some tips about resize and scaling options for NoMachine
https://www.nomachine.com/AR02M00835January 6, 2022 at 12:04 #36939
I have checked the resizing/scaling related documentation, but I did not find a solution for my problem.
After newly installing the server and NoMachine, the NoMachine connection works fine, but I can not set the proper screen resolution for the server. It is a cloud/headless server, and previously this was not an issue, although now the max resolution seems locked and no matter how/what I change, I can not achieve the desired resolution to match the client screen (2560 x 1440).
It is strange, because when I connect to the server using xrdp, I can set any screen resolutions, including the desired 2560 x 1440.
The same issue exists on freshly installed Ubuntu and Arch cloud servers as well.
Can you please advise? I would like to keep using NoMachine, because xrdp connection is dead slow.
Attachments:January 6, 2022 at 14:43 #36950fishermanModerator
What I see here is the issue with your xorg Display configuration of the headless server, that needs to be adapted to use higher display resolutions.
NoMachine when connecting to the physical screen uses only provided resolution from the system, and as you show on your screenshots that was 1366×768.
If you want that NoMachine set up screen resolution, you could use NoMachine workstation virtual desktops, or ask NoMachine to create physical display for you. More info about mentioned feature can be found here: FR10L02842 – Giving the possibility to connect a physical session in NoMachine free version when the local X server can’t be found.January 6, 2022 at 17:24 #36954
Thank you very much, the linked article’s instructions solved the problem.
Enabled CreateDisplay 1 and set DisplayGeometry in the server.cfg and when I connect, the proper resolution comes up by default.January 10, 2022 at 13:35 #36977fishermanModerator
I am really happy that my post helped you.
You must be logged in to reply to this topic.