Skip to content

VNC Port 5900 and VPS Console Access

Quick answer

Which port does VNC use?

  • TCP 5900 for display :0, then 5900 + display number: :1 is 5901, :2 is 5902.
  • The VNC web client (noVNC) usually talks to a websocket proxy on port 6080.
  • On a Euronodes VPS you do not need any VNC port to see your server's screen: use the Console button in the client panel.

The built-in console (no port, no setup)

Every VPS has a noVNC console in the client panel, opened with the console icon in your server list. It shows the VM's screen directly from the hypervisor, so it works even when:

  • the network or firewall inside the VM is broken
  • SSH or RDP is locked, disabled or under attack
  • the VM is in BIOS, a bootloader, Safe Mode or an OS installer

It needs no port open on your VM and nothing installed inside it.

Use it for recovery, not as a desktop

The console is emergency access: it disconnects after a short idle time, does not go fullscreen, and can mistype special characters in passwords because of keyboard layouts. For daily work use RDP (Windows) or SSH (Linux). If a password will not type, set a simple one such as Baba-Mama-Tata for console use.

Running your own VNC server on a Linux VPS

If you want a graphical desktop on Linux, a VNC server such as TigerVNC listens on 5901 for display :1.

Never expose port 5900-5910 to the internet

VNC passwords are short and VNC ports are scanned constantly. Bind the server to localhost and connect through an SSH tunnel.

1. Start the VNC server on localhost only (TigerVNC example):

vncserver :1 -localhost yes

2. Open an SSH tunnel from your computer:

ssh -L 5901:localhost:5901 root@your-server-ip

3. Point your VNC viewer at localhost:5901.

If you must open the port, allow only your own IP in the firewall:

ufw allow from 198.51.100.7 to any port 5901 proto tcp

For a smoother Linux desktop than VNC, try xrdp, NoMachine or x2go.

VNC port reference

Display TCP port Typical use
:0 5900 the physical or main screen
:1 5901 first virtual desktop (TigerVNC default)
:2 5902 second virtual desktop
web 6080 noVNC websocket proxy
HTTP 5800 legacy Java viewer in old VNC servers