vncserver, change the port

Hi,

I have a problem with change standard port vncserver.
I read on documentation and google, for the change standard vncserver port (6000,6001) I must change "/usr/bin/vncserver" line of "$vncPort = 5900 + $displayNumber;".

I change it to
Code:
$vncPort = 1000 + $displayNumber;
But it don't work...

I restart vncserver, but nmap results still show "6000 and 6001 port's".

Thanks,
 
Please note that only root can open ports < 1024.

The standard vnc ports are 5900 and 5901. 6000 is XDMCP and is best left off until you understand the risks.
 
Back
Top