Are you looking for which all ports to open in order to access VNC? Today, we will see how our Support Engineers opens ports for VNC. At Bobcares, we often get requests to allow VNC ports, as a part of our Server Management Services.
Overview
What is VNC?
VNC aka Virtual Network Computing enables control over a remote system. Basically, it is a graphical desktop sharing system. We can access this through platforms like Linux, Windows, macOS.
But to use VNC, it is important to have an idea about the ports to use. So, let’s have a look at it.
How We Open VNC Ports?
In order to access a remote system via the internet, we need to connect to it. VNC typically uses the following ports:
1. TCP Port 5900: This is the default port for the first VNC server. Each additional server increments the port number by 1. For example:
First VNC server: TCP port 5900
Second VNC server: TCP port 5901
Third VNC server: TCP port 5902 etc.
2. TCP Port 5800: This port is used for the VNC web interface, which allows you to access VNC sessions through a web browser. Similar to port 5900, each additional server increments the port number by 1. For example:
First VNC server web interface: TCP port 5800
Second VNC server web interface: TCP port 5801
Third VNC server web interface: TCP port 5802 etc.
The default ports that VNC uses is 5900. But for the web interface, it uses 5800. In addition, we can also use multiple ports starting from 5900+N. Now let’s check out how to open these ports on various platforms.
Steps to Open VNC Ports in Linux
Usually, our Support Engineers do this by forwarding the port in the router or by adding firewall rules.
Port forwarding in the router: So, to access VNC over Internet we open the ports in the router. Here are the steps we follow:
1. Initially, we access the router’s web interface.
2. Then select the section port forwarding.
3. Here we create a new rule for port forwarding. For this, we give the source and destination ports as TCP 5900. Then give the destination address as the IP of the local machine.
4. Later, we check if the ports are listening or not.
Adding firewall rules: Similarly, in a Linux system, we need to add firewall rules to open ports. By this, we ensure the port is open whenever a user tries to access it. Hence we add rules to open access to ports like 5900, 5800, etc.
Steps to Open VNC Ports in Windows
Usually, we open ports in Windows via the Windows Firewall with Advanced Security. Our Support Engineers do this as follows:
1. Firstly, we open the Group Policy Management Editor.
2. Here we select the option Windows Firewall with Advanced Security. And this option appears as,
3. Then select the option Inbound Rules from Windows Firewall with Advanced Security
4. Now the New Inbound Rule Wizard opens.
5. Next, select the following options as moving forward.
- Rule Type: Port
- Protocol and Ports: TCP and give the Specific local ports as 5900.
- Action: Allow the connection
- Profile: Domain/ Private/ Public
- Name: Provide the name and description if needed.
6. Finally, click Finish to exit and save the rule.
[Need assistance in accessing a VNC? – We can help you.]
Conclusion
In short, the VNC ports to open are the default ports 5900 and 5800. In addition, for accessing VNC via a web interface we can use port 5800. Today, we saw how our Support Engineers do this in Linux and Windows.
0 Comments