Home Net Guide

Home / Port numbers / Port 5900

Port 5900: VNC

Remote screen sharing. Port 5900 uses TCP.

Port
5900
Commonly used for
VNC
Transport
TCP
Encrypted
No (in most versions)
Range
User (registered) port, 1024 to 49151
Our advice
Keep it closed to the internet
IANA registration
rfb Remote Framebuffer (TCP, UDP)

Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.

What port 5900 is used for

Port 5900 is VNC, a remote-screen system that works on nearly any platform. It is what macOS Screen Sharing uses, and many virtual machine hosts offer consoles over it. Additional screens use the following ports, so display 1 is 5901.

Should port 5900 be open?

Classic VNC passwords are limited to eight characters and the session is unencrypted in most versions. Surveys keep finding thousands of VNC servers on the internet with no password at all, some controlling industrial equipment. Never expose it directly: tunnel it through SSH or a VPN.

Related ports

  • Port 3389 (RDP): Windows Remote Desktop
  • Port 22 (SSH): secure remote login and file transfer (SFTP)
  • Port 6000 (X11): the Unix and Linux graphical display system

See all port numbers for the full list and how ports, TCP and UDP work.

Previous: Port 5683 (CoAP) · Next: Port 5938 (TeamViewer)