Configure the firewall to accept incoming connections
When the computer with VNC or RDP server has a firewall software running, it requires additional configuration to be open for the incoming connections. The default TCP port numbers are 5900 for VNC protocol and 3389 for RDP protocol.
Most operating systems have built-in firewall software. OS X allows incoming Screen Sharing connections by default. Windows allows incoming connections on port 3389 automatically while RDP is enabled in system preferences, but might require an additional configuration for VNC servers.
Here are the instructions on how to make Windows firewall accept incoming VNC/RDP connections.
Windows XP
- Choose Start > Control panel, then click Windows Firewall in Network and Internet Connections category.
- Choose the Exceptions tab.
- Click Add port button.
- Set the name (e.g. VNC) and port number.
- Choose TCP protocol.
- Click OK.
Windows Vista
- Choose Start > Control panel, then click Allow a program through Windows Firewall in Security category.
- Choose the Exceptions tab.
- Click Add port button.
- Set the name (like “VNC”) and port number.
- Choose TCP protocol.
- Click OK.
Windows 7
- Choose Start > Control panel, then click System and Security
- Click Allow a program through Windows Firewall in Windows Firewall section.
- Click Change settings button.
- Click Allow another program button.
- Choose your VNC server from the list and click Add.
- Enable Home/Work (Private) option.
- Click OK.
Windows 8
- Press Windows key.
- Type “firewall” and select Settings in the right-side panel.
- Choose Allow an app through Windows Firewall.
- Click Change settings.
- Click Allow another app...
- Choose your VNC server from the list and click Add.
- Enable Private option.
- Click OK.
Windows 10
- Press Windows key.
- Type “firewall” and select Windows Firewall in the right-side panel.
- Choose Allow an app through Windows Firewall.
- Click Change settings.
- Click Allow another app...
- Choose your VNC server from the list and click Add.
- Click Network Types...
- Enable Private option.
- Click OK.
If your computer is running a third-party firewall software, please refer to its documentation for information.
RELATED INFORMATION
Configure the network router to accept incoming connections