BLOG POSTS
VNC: What is default port?

VNC: What is default port?

Guide to Default VNC Port

VNC (Virtual Network Computing) is a remote desktop sharing protocol that allows users to control and access the desktop of a remote computer over a network connection. By default, VNC uses port 5900 for communication, but it can be configured to use a different port if needed.

Checking the Default VNC Port

To check the default VNC port on a remote computer, you can use the following command:

nmap -p 5900

This command will scan the specified IP address for open ports, and if the default VNC port (5900) is open, it will be displayed in the output. On our VPS we provide you the SolusVM panel access as well as VNC access to server.

Changing the Default VNC Port

If you want to change the default VNC port to a different port number, you can do so by modifying the VNC server configuration file. The location of this file may vary depending on the operating system and VNC server software you are using. Once you have located the configuration file, open it in a text editor and look for a line that specifies the port number (usually “Port” or “Display”). Change the value to the desired port number and save the file. After making this change, you will need to restart the VNC server for the new port to take effect.

Examples of Commands

Here are some examples of commands related to the default VNC port:

  • nmap -p 5900 192.168.0.1 – Check if port 5900 is open on IP address 192.168.0.1
  • vncserver :1 – Start a VNC server on display :1
  • vncviewer 192.168.0.1:1 – Connect to a VNC server running on IP address 192.168.0.1, display :1

Similar Commands

Here are some commands that are similar to those related to the default VNC port:

  • nmap -p – Scan for open ports on a remote computer
  • netstat -tuln – List all listening ports on a local computer
  • ssh -L – Forward a local port to a remote port over an SSH connection

Use Cases

The default VNC port can be used in various scenarios, such as:

  • Remote desktop access and control
  • System administration and troubleshooting
  • Remote collaboration and support

Ideas for Automation

Here are some ideas for automating tasks related to the default VNC port:

  • Write a script to check the status of VNC servers on multiple remote computers
  • Create a script to automatically start a VNC server on system startup
  • Develop a script to automatically connect to a VNC server on a specific IP address and display

Table of Useful Data

Command Description
nmap -p 5900 Check if port 5900 is open on the specified IP address
vncserver :1 Start a VNC server on display :1
vncviewer :1 Connect to a VNC server running on the specified IP address, display :1
netstat -tuln List all listening ports on a local computer
ssh -L :: user@ Forward a local port to a remote port over an SSH connection


This article incorporates information and material from various online sources. We acknowledge and appreciate the work of all original authors, publishers, and websites. While every effort has been made to appropriately credit the source material, any unintentional oversight or omission does not constitute a copyright infringement. All trademarks, logos, and images mentioned are the property of their respective owners. If you believe that any content used in this article infringes upon your copyright, please contact us immediately for review and prompt action.

This article is intended for informational and educational purposes only and does not infringe on the rights of the copyright owners. If any copyrighted material has been used without proper credit or in violation of copyright laws, it is unintentional and we will rectify it promptly upon notification. Please note that the republishing, redistribution, or reproduction of part or all of the contents in any form is prohibited without express written permission from the author and website owner. For permissions or further inquiries, please contact us.

Leave a reply

Your email address will not be published. Required fields are marked