Port 5900: VNC

Remote desktop for many platforms.

Port
5900
Protocol
TCP
Service
VNC
Exposure
Do not expose to the internet

What is port 5900 used for?

Remote screen access.

Is it safe to expose port 5900 to the internet?

Weak authentication in many setups. Tunnel it through SSH or a VPN.

If port 5900 seems closed or unreachable

  1. Check that the VNC service is running and listening on port 5900, not only on 127.0.0.1.
  2. Check the firewall on the host itself (Windows Defender Firewall, iptables, nftables, ufw) for a rule that allows TCP 5900.
  3. If the host is behind a router, confirm the forwarding rule points to the correct internal address and that your internet provider does not use carrier-grade NAT.
  4. Test from outside your own network. A port can be open locally and blocked at the edge, or the other way round.

Using port 5900 safely

Treat port 5900 as an internal-only service. Reach it through a VPN or an SSH tunnel, restrict it by source address, and keep the software that listens on it patched.

Check whether port 5900 is open on your host

The check connects from our server, so it shows what the internet can reach.

Open the port checker

Related ports