I want to access NX server using a client device which has Windows through command line using components like nxssh, nxWin, nxproxy. Not through the GUI of the NX Client.
In other words, I want the opposite command in Windows of the commands like 'nxproxy -S ...' that's used in Linux.
nxproxy doesn't seem to be supplied for the Windows client. However, you can compile it with Cygwin tools from nxcomp-3.4.0-7.tar.gz and nxproxy-3.4.0-2.tar.gz. You might need the following Cygwin packages:
Unpack the NX tarballs in one common directory, so that it contains the subdirectories nxcomp/ and nxproxy/ afterwards.
To build nxcomp-3.4.0-7:
To build nxproxy-3.4.0-2:
Afterwards put cygXcomp.dll and nxproxy.exe in any directory of your choice, it should run from there.
Note: nxcomp includes code that makes it use nxauth instead of xauth when building for Windows. If that's not what you want, because you want to use Cygwin's xauth, remove the appropriate part from Auth.cpp. But nxauth should work just fine if you set the NX_SYSTEM environment variable to your NX client's installation directory.
NXWin is included with the client installation. It can be a bit picky about its invocation. A line that works for me is:
You can supply "-screen 0 1280x1024" etc. instead of "-fullscreen" to get a window.
Path arguments to nxwin.exe should be in POSIX format ("/cygdrive/c/..."). To find out about your font path setting, you could try running NXWin through nxservice.exe which will result in informative log output on the console, e. g.
In addition to NX_SYSTEM, it is necessary to set the NX_ROOT and XAUTHORITY environment variables before running nxservice. NX_ROOT is your .nx directory. XAUTHORITY points to the Xauthority file, which could be %USERPROFILE%\.Xauthority.