I will try first command and check what it gives in result.
So to be more clear about the issue, I do not get the public IP which I could share to other people where they could connect to NoMachine from other networks, external networks, not local network. When you launch NoMachine there is a window on right side giving you connection end points which is your local IP for NoMachine server. I have done some research and found that in the same place it should show public IP as endpoint to connect NoMachine from external networks, but mine does not show one. It says that NoMachine tries to configure UPnP for external connection and this should appear if configuration is successful, but as stated that such endpoint does not appear I assume that there is a configuration failure at my end which I am having trouble to detect.
To be straight forward: how do I connect to NoMachine from external network?