top of page

VNC Ports To Open in Linux and Windows

  • arjun5792
  • Aug 30, 2022
  • 2 min read



You are one of the many people who looked for a solution online to open VNC ports or to enable VNC on Linux or Windows. Being a server management company, we frequently get questions from clients about configuring VNC ports and sessions. In order to help you open VNC ports on your own, we've provided detailed solutions in this article.


What is VNC?


A desktop sharing system that allows remote computer control is called Virtual Network Computing, or VNC. If you require to access files that are stored on a computer that is far from your zone, virtual network computing can be helpful. Only a TCP/IP connection, a VNC server, and a VNC viewer are required for the connection. You also need to be familiar with the VNC ports in order to use VNC.


How to open VNC Ports?


You must first connect to another system in order to control it remotely. VNC makes use of a default port for this. The web interface uses port 5800 instead of the standard VNC port of 5900. In addition, we can use different ports in place of the default VNC ports. You might need to add the user-assigned display number and the default port number to achieve this. In other words, if your display number is 2, you can multiply it by 5900 + 2 to get the port number 5902.


VNC ports to open in Linux


Remote Frame Buffer is another name for the VNC server (RFB). Either of the two methods will allow you to open VNC ports.


By forwarding the port on the router


By following the instructions listed below, you can get Linux's VNC ports to open.


  • Visit the web interface for the router.

  • Choose the Port Forwarding category.

  • For the purpose of creating a new port forwarding rule, enter your source and destination ports (TCP 5900).

  • Set your destination address to the IP of the local machine.

  • Lastly, verify whether the port is open for listening.



Firewall Rules


On Linux systems, you might need to add a firewall rule in order to open VNC ports. By opening VNC ports like 5900, you can access remote systems by adding firewall rules.


Windows VNC Ports To Be Opened Via Group Policy


To open VNC ports on a Windows computer, you will need the Group Policy Management Tools, which are a component of the remote server administration tools. The Microsoft website has it for sale. Apply the instructions to Windows to open VNC ports.


  • Open Group Policy Management Editor first.

  • Choose Windows Firewall with Advanced Security from there.

  • Use the Group Policy Management Tool to edit your current group policy or to create a new one.

  • To launch a new inbound rule wizard, select the option Inbound Rules.

  • Choose Port, then click Next.

  • Select TCP and enter "5900" as the default port in Specific Local Ports.

  • Click Next after selecting Enable the connection as the Action.

  • From the Domain/Private/Public drop-down menu, select your profile, then click Next.

  • If necessary, provide a meaningful name and description.

  • Click on Finish.


Use the group policy management tool to check that the Group Policy Object is applied to the appropriate computers after the aforementioned steps have been successfully completed.


Recent Posts

See All

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Server Management. Proudly created with Wix.com

bottom of page