Don Lindbergh wrote:
Ed wrote:
Well...one way to do this is to edit the /etc/init.d/vncserver file.
In the "start" subroutine exit the line:
"su ${USER} -c \"cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${display%%:*}\""
to be:
"su ${USER} -c \"cd ~${USER} && [ -f .vnc/passwd ] && vncserver -httpport 6900 :${display%%:*}\""
Seems as if there should be a way to specify this in a config file...and yes I assumed the Xvnc man page would have had it. :-)
Hmmm, just tried editing that file and specifying a different port, restarted, and the vnc server continues to run on tcp port 5900 (I had previously thought it was 5800).
There are 2 ports for the vncserver....
One is the httpport that I thought you were talking about. That is the 5800 range and controlled by the -httpport parameter.
The other is the "remote frame buffer" port which is the 5900 range and controlled by the -rfbport parameter.
See "man Xvnc" for...
-rfbport port Specifies the TCP port on which Xvnc listens for connections from viewers (the protocol used in VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number.
and
-httpPort port Specifies the port on which the mini-HTTP server runs. Default is 5800 plus the display number.
If I stop the server, I do an nmap afterwards and it's still running/listening and I can connect with a client.
/etc/init.d/vncserver stop
Shutting down VNC server: [ OK ]
[root@localhost don]# nmap -sT -O localhost
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-03-28 21:29 EST
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1655 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
631/tcp open ipp
5900/tcp open vnc
--Don
-- "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
--Ford Prefect in "Mostly Harmless".
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list