The vncserver script assumes that a potential X display number {n} is occupied if one or more of the following is true:

- Something is listening on TCP port 6000 + {n}.  This port would be used if X11 TCP connections were enabled, but the TurboVNC Server does not enable X11 TCP connections by default.

- Something is listening on TCP port 5900 + {n}.  This port is used for RFB connections from VNC viewers.

- The file /tmp/.X{n}-lock or the file /tmp/.X11-unix/X{n} exists.  These files are used by X11 Unix domain socket connections, which are the default method by which X applications communicate with the TurboVNC X server.  If the TurboVNC session didn't exit cleanly, then you may need to run '/opt/TurboVNC/bin/vncserver -kill :{n}' to clean up the Unix domain socket files for the session.  If those files aren't cleaned up, then the X display number for that session won't be reused by a new TurboVNC session.

Also, on Ubuntu 20.04 and other Wayland-equipped distributions, the local X server will use Display :1 whenever someone logs in, so if you want to use Display :1 for TurboVNC, make sure you are logged out of the local X server.

On 5/23/21 12:17 PM, A анонимный wrote:
Hey people and wonderful devs!

So I have been using TurboVNC for a long time but lately, it keeps making the server on new ports. I just launch my TurboVNC server as a user, nothing fancy. On my regular Ubuntu 20.04 LTS server - the TurboVNC is the latest I could grab from the site.

How I start it?
Again, nothing fancy: "./vncserver -localhost" that's it.

So I start the server and normally, it starts on :5901 - and :1
After a while it made a server on :2
Tried to debug this behavior. Checked .log files, checked "ps ax | grep vnc", nothing.

Today it did a server on :3. And I just can't seem to force it to make it on the :1. Nor I can find out why it keeps making new ports. The server has been restarted many times, it's updated regularly, but I just can't figure out what's causing this.

Pls help?

--
You received this message because you are subscribed to the Google Groups "TurboVNC 
User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/turbovnc-users/60c69aa7-f0db-a092-9b75-e93c52d5f3b4%40virtualgl.org.

Reply via email to