Port 5900
Port 5900 VNC remote desktop
VNC remote desktop listens on port 5900. Many exposed VNC servers ask for a weak password, or none at all.
What is port 5900 used for?
Port 5900 is the default port of VNC (Virtual Network Computing), the remote desktop built on the RFB protocol. Each extra display takes the next port, 5901, 5902 and on. Linux desktops, macOS screen sharing, industrial control panels and many embedded devices use it.
Classic VNC authentication uses a password of at most eight characters and does not encrypt the session.
Why attackers want it
An open VNC server shows its screen to anyone who gets past a short password, and some ask for none. Attackers guess passwords at high speed and look for control panels and desktops they can operate directly.
Who scans port 5900
Every address that scanned port 5900 from 28 October to 27 November 2026, with known scanners left out.
- AS212238Datacamp Limited 847
- AS209854Cyberzone S.A. 815
- AS45102Alibaba (US) Technology Co., Ltd. 507
- AS9009M247 Europe SRL 456
- AS14618Amazon.com, Inc. 389
- AS14061DigitalOcean, LLC 388
- AS135377UCLOUD INFORMATION TECHNOLOGY (HK) LIMITED 348
- AS8075Microsoft Corporation 322
- AS60068Datacamp Limited 262
- AS43515Google Ireland Limited 209
- United States of America 3.113
- Germany 780
- Canada 769
- United Kingdom 415
- People's Republic of China 405
- Netherlands 375
- Belgium 320
- France 251
- Hong Kong 247
- Singapore 243
Should port 5900 be open?
Port 5900 should never be reachable from the internet. Reach VNC only through an SSH tunnel or a VPN, and give every server a strong password.
Close it at the edge
Drop inbound TCP 5900 and the ports above it that your displays use, on every firewall and cloud security group.
Tunnel it
Connect over an SSH tunnel or a VPN, so the VNC session is encrypted and only reachable from inside.
Require a strong password
Never run VNC without authentication, and prefer servers that support stronger sign in than the classic eight character password.
Port 5900 questions
What is port 5900 used for?
Port 5900 is the default port of VNC, a remote desktop that shows and controls a screen over the network. Additional displays use 5901, 5902 and the ports above.
Is it safe to expose VNC on port 5900?
No. Classic VNC limits passwords to eight characters and does not encrypt the session, and many servers are set up without a password. Reach it through an SSH tunnel or a VPN instead.
Why do scanners send so many connections to port 5900?
Each password guess against VNC is a new connection, and guessing tools try thousands of passwords per address. That makes VNC one of the noisiest services on the internet.
How do I block port 5900?
Drop inbound TCP 5900 and the display ports above it on your firewall, and connect through a tunnel or VPN. An IP blocklist of active scanners stops the sources that probe for it.
Block the sources that scan port 5900.
An hourly IP feed of active scanners keeps them away from this port and everything else you run.