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.
vnc4server
. That works fine on port 5901. – Ionică Bizău Aug 12 '19 at 14:27alternative_port
) work for TigerVNC? – Ionică Bizău Aug 12 '19 at 15:29/etc/systemd/system/*.socket
(I'm not sure how this service is called on your system) and change the line which starts withListenStream=
. – Yaron Aug 13 '19 at 06:26.socket
file in that directory... – Ionică Bizău Aug 13 '19 at 06:31vncconfig
, there's an-rfbport
option: http://manpages.ubuntu.com/manpages/bionic/man1/Xvnc4.1.html – Yaron Aug 13 '19 at 06:42