In order to provide remote assistance to older family members, I installed NoMachineNX free on their Windows 10 PC.
Since they use a default account without a password (don’t get me started on bad security practices, I know), I configured a secondary admin account (with a very safe password) and removed admin privileges from the default account.
Since NoMachine (rightfully) will not let me log into the system without a password, I’m using the secondary admin account to connect.
The connection establishes successfully – I see their Win10 desktop but after a few seconds, the connection freezes (I get a spinner) and sometimes briefly reconnects, only to then disconnect again after a few seconds.
I’m connecting from my wired Ubuntu 20.04 workstation via LAN so any routing issues seem very unlikely to me.
The nxerror.log of the admin user shows a repetition of these errors:
2576 15136 09:21:04 579.246 Io/Io: WARNING! Descriptor FD#2384 type socket still open at exit.
2576 15136 09:21:04 579.246 Socket: ERROR! Network cleanup failed.
2576 15136 09:21:04 579.246 Socket: Error is 22 ‘Invalid argument’.
Error: Network cleanup failed.
Error: Error is 22 ‘Invalid argument’.
This block repeats every minute or so, where the Descriptor FD number changes.
One of the ‘session’ files show this at around the same timestamp:
(see attached ‘session’ file)
This clearly shows the session being disconnected and re-connecting.
How do I fix this?