How do I allow connections through my firewall?

Under Windows, VNC Server will attempt to add itself as an exception during installation to the current profile only.

If this is not possible for some reason, or if you want to add an exception to a different profile, or if the VNC Server computer is running a non-Windows operating system, then you will need to add an exception manually.

Configuring a firewall is fairly simple; you just need to open TCP port 5900 in the firewalls 'exception' list.

(1) Windows

Windows XP, Vista and 7 have a built-in firewall, which is on by default, and which you will need to configure.

(1a) Windows XP
  1. Navigate through to Control Panel > Windows Firewall
  2. Click on the 'Exceptions' tab, at the top of the window.
  3. Click on the 'Add Port...' button
  4. Name it "RealVNC" and set the "Port Number" to 5900, select "TCP" then click OK.

(1b) Windows Vista
  1. Navigate through to Control Panel > Windows Firewall
  2. Click on "Allow a program through Windows Firewall", in the left-hand pane.
  3. Click on the 'Add port...' button.
  4. Name it "RealVNC" and set the "Port Number" to 5900, select "TCP" then click OK.

(1c) Windows 7

  1. Navigate through to Control Panel > Windows Firewall
  2. Click on "Advanced Settings" in the left-hand pane.
  3. Click on "Inbound Rules" and then "New rule".
  4. Select "Port", click next then select "TCP" and enter "5900 as the local port.
  5. Click next, and allow the connection.
  6. Click next again, and ensure that "Domain", "Private" and "Public" are all ticked.
  7. Name your firewall rule, then save it.

(2) Mac OS X
  1. Navigate through to System Preferences > Security
  2. Click on the top "Firewall" tab
  3. If "Allow all incoming connections" is enabled, you do not need to do anything further.
  4. If not, make sure "Set access for specific services and applications" is enabled.
  5. Click on the plus symbol at the bottom (+)
  6. In the new Finder window, find the RealVNC folder, and then select 'VNC Server'

(3) Third-party firewall
s

If you are using a 'third party' firewall (Symantec, Kaspersky, Mcafee, Avast, AVG) then you will need to refer to your particular firewall's documentation for how to do this. The easiest option is probably just to search (using a search engine, such as Google) for 'How do I open a port in X' with "X" being the name of your firewall software.



Related Articles

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
26th of June, 2012

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue