rdp and vnc and firewall

on

RDP uses TCP port 3389
VNC uses TCP port 5900+ (Each remote connection to a server uses a different port; display 1 uses 5901, display 2 uses 5902, etc) It’s best to define a port range when creating the firewall rule or exception, such as 5900 – 5905.