I have set up a PI2 to be a water sensor at a remote location. I have gotten everything working but I want to be able to log in remotely using NoMachine even if my internet provider changes the WAN IP. I confirmed I can get the new WAN IP by contacting the provider, but I still need to know the WAN port number for the NX Server. Does it stay the same? If not, is there a file I could check for this info? If so I could write a script to get the info and send it to me.
I am running the latest version of NoMachine (6.1.6 for Linux) on Raspbian 6.3 (Stretch).
When IP will change you will probably not be able to connect to the server. It’s now been queued up for fixing and you can see it here: https://www.nomachine.com/TR01P08354. You can use the ‘notify me’ tool to find out when a fix has been released.
However there is a way to handle this, and make it works:
when IP will change you can use script or by hand call those 2 commands as administrator / root user: