Currently VNC Server is running on port 5901.

I want to change the port to be around 10000-10100 (in this range).

How can I do that?

I have already tried the suggestions from How can I change the default port of Remote Desktop (VNC)?:

gconftool-2 --set --type=bool /desktop/gnome/remote_access/use_alternative_port true
gconftool-2 --set --type=int /desktop/gnome/remote_access/alternative_port 10050

since I want VNCServer to listen on port 10050 — but that doesn't make any change in the functionality.

  • What is the exact type of VNC you're running? Is it TigerVNC/RealVNC/TightVNC/etc.? – Yaron Aug 12 at 14:26
  • @Yaron I installed vnc4server. That works fine on port 5901. – Ionică Bizău Aug 12 at 14:27
  • I think it's because the Ubuntu developers switch to TigerVNC by default, the following Arch user guide should walk you through: wiki.archlinux.org/index.php/TigerVNC – Yaron Aug 12 at 14:38
  • @Yaron Should the same field (alternative_port) work for TigerVNC? – Ionică Bizău Aug 12 at 15:29
  • No, that's especially for GSettings and possibly for older versions of Ubuntu. – Yaron Aug 12 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.