Skip to main content
Back to Home

Network Port: 5900

Network Port Reference Guide

Registered Service Name

VNC Remote Desktop

Transport Protocol

TCP

Functional Overview

Port 5900 is the default port for Virtual Network Computing (VNC) graphical desktop sharing sessions.

Security Risks & Vulnerabilities

VNC protocols frequently lack strong native encryption and are targeted by automated screen-scraping brute force tools. Tunnel VNC over SSH (Port 22) or VPN.

How to audit network port status

1. Scan Open Ports: Use our Port Scanner utility to verify if this port is actively listening on your host.

2. Verify Encryption: Audit the service layer to confirm SSL/TLS is protecting transmission payload.

3. Hardening Rules: Apply the firewall instructions below to shut down unauthorized inbound ports.

UFW Firewall Rules

Allow Command

sudo ufw allow 5900/tcp

Block Command

sudo ufw deny 5900/tcp

iptables Firewall Rules

Allow Command

sudo iptables -A INPUT -p tcp --dport 5900 -j ACCEPT

Block Command

sudo iptables -A INPUT -p tcp --dport 5900 -j DROP