Skip to main content

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.

The service

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.

The last 31 days

Who scans port 5900

Every address that scanned port 5900 from 28 October to 27 November 2026, with known scanners left out.

Port 5900 VNC remote desktop
Analyze
Observation window
First day28 Oct
Last day27 Nov
Known scanners left out38,1%
10.077Sources
294.328.015Connections
5.807Known scanners
31/31Active days
Sources per dayPeak 2.494 · 16 Nov
Top source networksSources
  1. AS212238Datacamp Limited 847
  2. AS209854Cyberzone S.A. 815
  3. AS45102Alibaba (US) Technology Co., Ltd. 507
  4. AS9009M247 Europe SRL 456
  5. AS14618Amazon.com, Inc. 389
  6. AS14061DigitalOcean, LLC 388
  7. AS135377UCLOUD INFORMATION TECHNOLOGY (HK) LIMITED 348
  8. AS8075Microsoft Corporation 322
  9. AS60068Datacamp Limited 262
  10. AS43515Google Ireland Limited 209
Top source countriesSources
  1. United States of America 3.113
  2. Germany 780
  3. Canada 769
  4. United Kingdom 415
  5. People's Republic of China 405
  6. Netherlands 375
  7. Belgium 320
  8. France 251
  9. Hong Kong 247
  10. Singapore 243
The verdict

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.

Questions

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.

Port 5900

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.