<graphcon>.vnc-setup [port|unix_socket] [-ipv4] ["password"]
Start VNC server on port or on UNIX socket unix_socket. If neither port nor unix_socket is specified, or if port is set to 0, then an arbitrary port is used. If the port is busy, the command fails, unless the new_vnc_port_if_busy attribute has been set. The listening port is returned, or NIL on failure.
The given port must not be a privileged port, i.e. allowed range is [1024, 65535]. The command will fail if the unix_socket argument specifies an already existing file. UNIX sockets are not support on Windows.
If password is provided, the VNC server will use authentication and require this password for new connections.
graphcon
<graphcon>.vnc-status