Change VNC Ports on Proxmox VE
From Proxmox VE
Contents |
Introduction
The default VNC Ports on the ProxMox VE (checked out on PVE 1.4 to 1.8) are preset between TCP 5900 and 5999. These ports may be forwarded to on the upline router with different ports on the external side.
Location of VNC Port Settings
The VNC Port set is hardcoded in the Proxmox VE in the file:
/usr/share/perl5/PVE/ConfigServer.pm
The specific line to look for is:
for (my $p = 5900; $p < 6000; $p++) {
and alter it to suit one's needs.
A restart of the Proxmox VE is in order here.
Caveat
Any scripts that use the said ports directly will have to be altered accordingly.
