Home » Questions » Computers [ Ask a new question ]

How do I get VNC to only serve up a specific display in windows?

How do I get VNC to only serve up a specific display in windows?

I'm doing this nice little project which will please a bunch of iPod/iPhone users, but one of my last steps requires me to serve up a specific display on my computer, how do I specify which display to use?

Asked by: Guest | Views: 316
Total answers/comments: 1
bert [Entry]

"The RealVNC 4.1 documentation describes how to use this option. I haven't seen a specific commandline option to activate it, but you can also add it to the registry.

DisplayDevice=<display>

The display device to remote, or empty to remote all displays.
The format of display is \\.\<device>. For example, \\.\display1.

You need to set or create the DisplayDevice key in one of the following places, depending on how you're running the server:

If running RealVNC server as a service, set/create the key under

HKEY_LOCAL_MACHINE\Software\RealVNC\WinVNC4

If running RealVNC server in user-mode, set/create the key under

HKEY_CURRENT_USER\Software\RealVNC\WinVNC4

I found some indication that this option might be specified on the commandline like this (no guarantees; I can't test this for you):

Winvnc4 -displaydevice=\\.\display1 -portnumber=5900
Winvnc4 -displaydevice=\\.\display2 -portnumber=5901"