Port 5900 (VNC)
Port 5900 is the base port for VNC remote desktop (the Remote Framebuffer protocol). Its IANA registration, transports and port range.
Updated
Port 5900 is registered with IANA under the service name rfb, on TCP and UDP. It is one of the registered (user) ports, 1024 to 49151.
IANA registration
This is the assignment for port 5900 exactly as the registry lists it, one row per service name and transport.
| Service name | Transport | Description | Reference |
|---|---|---|---|
rfb |
TCP | Remote Framebuffer | RFC 6143 |
rfb |
UDP | Remote Framebuffer | RFC 6143 |
Source: IANA Service Name and Transport Protocol Port Number Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.
A registration records who a port number is assigned to. It does not prove that whatever is listening on the port is that service, and it does not mean the service uses every transport listed: older entries were routinely registered for both TCP and UDP.
In practice
This section is written by Network Utility. It is not part of the IANA registry.
Port 5900 is the base port for VNC remote desktop (the Remote Framebuffer protocol).
A VNC server for display 0 listens on TCP port 5900, display 1 on 5901, and so on. macOS Screen Sharing uses the same protocol and port.
Many VNC servers offer weak password schemes and little or no encryption. Do not expose port 5900 to the internet; tunnel it through SSH or a VPN.
Related ports: 3389 (RDP), 22 (SSH).
Port range
Port 5900 falls in the registered (user) port range, 1024 to 49151. RFC 6335 calls these User Ports. IANA assigns them on request through IETF Review, IESG Approval or Expert Review. Any program can listen on them without special privileges, so it is common to find software using a port in this range that is registered to something else.
The other ranges are well-known (system) ports (0 to 1023) and dynamic (private) ports (49152 to 65535). The ranges and the assignment rules are defined in RFC 6335.
Look up another port in the port table.