Port 5900 β VNC Remote Desktop (RFB Protocol)
Port 5900 is the default TCP listening port for Virtual Network Computing (VNC / RFB protocol) servers, including TightVNC, TigerVNC, RealVNC, and macOS Screen Sharing.
5900
TCP
Xvnc, tigervnc, winvnc.exe
5900/tcp
Instant Terminal Fixes for Port 5900
sudo lsof -i :5900 || sudo ss -tulpn | grep ":5900 "vncserver -kill :0 || kill -9 $(lsof -t -i:5900)sudo ufw deny 5900/tcpGet-NetTCPConnection -LocalPort 5900Stop-Process -Name winvnc* -Forcedocker run -d -p 5900:5900 dorowu/ubuntu-desktop-lxde-vncCommon Error Encountered
VNC connection closed unexpectedly: RFB server not answering on port 5900.
Security Advisory & Hardening
Traditional VNC passwords are truncated to 8 characters and encryption is often nonexistent. Tunnel VNC over an SSH connection (ssh -L 5900:localhost:5900) instead of exposing port 5900.
Port 5900 Questions & Answers
Common questions regarding default services, kill commands, and firewall configurations.
Port 5900 is commonly used for VNC Remote Desktop (RFB Protocol). Port 5900 is the default TCP listening port for Virtual Network Computing (VNC / RFB protocol) servers, including TightVNC, TigerVNC, RealVNC, and macOS Screen Sharing.