Port 5900: VNC

Port 5900 is VNC, a remote screen-sharing protocol, and the port Mac Screen Sharing uses.

At a glance
Port
5900 / TCP
Service
VNC
Also called
vnc, rfb, screen sharing
If exposed
High risk if exposed

What runs on port 5900

VNC servers listen on TCP 5900 (5901, 5902 and so on for extra displays) and send the screen to a viewer that can control mouse and keyboard. macOS Screen Sharing, RealVNC, TightVNC and many Linux desktops use it. The classic protocol only supports short passwords and no encryption.

On a home network

Macs with Screen Sharing or Remote Management on, Raspberry Pis with VNC enabled, and some NAS boxes and virtual machines listen on 5900.

If port 5900 is reachable from the internet

VNC should not be reachable from the internet. Researchers have repeatedly found many thousands of VNC servers online with no password at all, some showing industrial control screens and home desktops, and exposed ones are brute forced constantly. Use a VPN or a remote-access service with proper login instead.

How to check whether it is open on your network

On a Mac, check System Settings, General, Sharing for Screen Sharing and Remote Management. RECON's Exposure Check shows whether 5900 answers on your public address.

Devices that open port 5900

Raspberry PiVNC remote desktop, bundled with Raspberry Pi OS

Related ports

All portsPort lookupSubnet calculator

Other tools

IPv4 · IPv6 · CIDR
Subnet calculator
Network, broadcast, host range and wildcard for any CIDR, IPv4 or IPv6. Turns an IP range into the CIDR blocks that cover it.
OUI · MA-L · MA-M · MA-S
MAC vendor lookup
Which company made the device behind a hardware address, from the IEEE registry. Spots randomised private addresses too.
X.509 · PKCS#10 · PEM · DER
Certificate and CSR decoder
Subject, issuer, validity, key, SANs, key usage and fingerprints from a certificate or signing request. Parsed in your browser.
VPN · resolver · privacy
DNS leak test
Which DNS servers actually answer your lookups on this connection, who owns them, and whether your VPN or private DNS is really being used.
Cloudflare · Google · Quad9 · 8 resolvers
DNS benchmark
Times eight public resolvers from where you are, over DNS-over-HTTPS, and ranks them by median response.
TCP · UDP · what is this port
Port lookup
What a port number is used for, which home devices open it, and whether it matters that it is reachable.
Certificate Transparency · CT logs
Subdomain finder
Every subdomain on a currently valid TLS certificate, from the public Certificate Transparency logs, with the ones worth a second look flagged.
IP to ASN · BGP · IP ranges
ASN lookup
Which network routes an IP address, who holds an AS number, and every IPv4 and IPv6 range it announces. Live BGP data from RIPEstat.
HTTP archive
HAR analyzer
Open a HAR file and see what a page really loaded: third parties, slowest requests, insecure cookies, servers that leak versions.
IIS · nginx · Apache · access logs
Log analyzer
Check IIS, nginx and Apache access logs for signs of exploitation, with a verdict per CVE and every finding traced to its line. Read in your browser, never uploaded.
Public IP · fingerprint
What is my IP
Your public address and everything else your browser hands to every site you visit, without asking.