VNC - Virtual Network Computing Basics

by Sharan R

VNC Basics

Virtual Network Computing, or "VNC," is software used to connect remotely to a computer system. This allows a user to see and control one computer from multiple locations. Because this control is transmitted over the Internet, the computer can be viewed from anywhere in the world.

VNC software is fairly uncomplicated and easy to use. Many operating systems, including Microsoft Windows, already include simple VNC programs. These applications allow users to connect remotely and operate another computer loaded with the same software.

VNCs allow computers to become remotely sharable. This means that several different users, each in separate locations, can view a computer desktop at the same time. VNC software makes training, monitoring and troubleshooting easy by making remote access flexible.

VNC Interface

Most VNC systems are controlled from a simple graphic user interface. Once the software has been installed on a remote computer, it can be accessed from any location. A server constantly monitors inputs and outputs from one computer, and updates them to the second location.

The interface for most VNCs can operate from any operating system, such as Windows, Macintosh, or Unix. Because information is transmitted over the Internet, the system eliminates many of the traditional cross-platform problems. Just as a website can be viewed on many different operating systems, so can VNC control operate from many different computer types. While "VNC" is a generic term for this type of software, many brands of the software exist, with packages available for all major operating systems.

The connection used to interface data is protected by a password. This prevents unauthorized users from controlling a remote computer. Once the connection is established, information begins to be exchanged. Details on mouse location, keyboard entry, and screen updates are fed over the secure connection, keeping the computers synchronized.

VNC Uses

VNC software began as a way to monitor and troubleshoot systems remotely, and this feature remains a common use. Computer technicians can provide tech support using VNC without being physically present. If a user is having a problem installing software, for example, a support professional can connect to her computer, see the problem, and talk the user through the solution.

Use of VNC software has also expanded to other areas. Remote work has become an increasingly popular option. VNC allows workers to access and control software without being in the office. For instance, using VNC, a programmer in India can easily control a desktop computer in California, collaborating with colleagues and working on a project remotely.

Overview

VNC consists of two components. A server, which runs on the computer you want to remotely access, and a viewer, which runs on the computer you are sitting in front of. There are two important features of VNC:
  • The server and the viewer may be on different machines and on types of computer. The protocol which connects the server and viewer is simple, open, and platform independent.
  • No state is stored at the viewer. Breaking the viewer's connection to the server and then reconnecting will not result in any loss of data. Because the connection can be remade from somewhere else, you have easy mobility.
So to get started with VNC you need to run a server, and then connect to it with a viewer. First of all, you have to download and install the software on the platforms you want to use. The screenshots on this page refer to VNC Free Edition 4.1, but the general concepts apply to all versions of Free Edition and Enterprise Edition.

Networking

VNC software requires a TCP/IP connection between the server and the viewer. This is the standard networking protocol on LANs, WANs, broadband and dialup ISP. Each computer has a unique IP address and may also have a name in the DNS. You will need to know the IP address or name of the server when you connect a viewer to it.
Sometimes the IP address is fixed, and sometimes it is issued to you dynamically by your ISP. If it is allocated dynamically, you might consider using a third party DNS management service. Try typing "dynamic dns management service" into a google.

Running a Windows server

Installing the Windows server, WinVNC, should create a RealVNC group in your Start... menu. Run the VNC server.

If this is the first time you've used a VNC server on this machine you'll be prompted to set a password, which you'll need when you connect to the machine from a remote location. A small icon will appear in the system tray, and by right-clicking on this you can control most aspects of the server.

winvnc4_traymenu

The IP address of the computer running the VNC server can be found by hovering over the tray icon in the system tray. Unless this computer has a DNS name, you will need to specify this number to the viewer when you connect.

winvnc4_ipaddr

You can now go to another machine and connect a viewer to the server.

Running a Unix server

To X applications, a VNC server appears just like the standard X display you sit in front of, but without a physical screen attached. The applications don't know this, they just carry on running whether or not a viewer is connected. You can start a new VNC server on a Unix machine by typing:
 
vncserver

If you haven't run a VNC server before you will be prompted for a password, which you will need to use when connecting to this server. All your servers on the same Unix machine will use the same password, and you can change it at a later date using
 
vncpasswd

With a normal X system, the main X display of a workstation called ’snoopy’ is usually snoopy:0. You can also run as many VNC servers on a Unix machine as you like, and they will appear as snoopy:1, snoopy:2 etc, as if they were just additional displays. Normally vncserver will choose the first available display number and tell you what it is, but you can specify a display number if you always wish to use the same one:
vncserver :2

You can cause applications to use a VNC server rather than the normal X display them by setting the DISPLAY environment variable to the VNC server you want, or by starting the application with the -display option.

For example:
xterm -display snoopy:2 &
You can kill a Unix VNC server using, for example:
vncserver -kill :2

Full instructions for installing and running VNC server for Unix can be found in the RealVNC Site documentation.
Nothing will appear immediately as a result of starting a Unix VNC server. To see anything you need to connect a viewer to the server, see below.

Running a viewer

You can run the Windows viewer the RealVNC group on the Start... menu.
winvncviewer4_startmenu

In this case, you will be prompted for the host name (VNC server name) and display number:


winvncviewer4_display

Enter it and click OK, and you will be prompted for your password, after which you should see the remote display. If you are connecting to a Windows or Mac server, the display number will be 0 unless you have explicitly changed it, and can be omitted.

You can run the viewer on Unix and Windows by typing at the command line:
vncviewer snoopy:2

You need to specify the name of the VNC server and the number of the desktop. If, for example, you have started a server as display 2 on a machine called 'snoopy'. Remember that if you are connecting to a Windows or Mac server, the display number will be 0 unless you have explicitly changed it, and can be omitted.

If the machine running the server does not have a DNS entry, you probably won't be able to use the name and will have to replace snoopy with its IP address, for example something that looks like 123.456.78.9.

Using a web browser as a viewer

The VNC servers also contain a small web server. If you connect to this with a web browser, you can download the Java version of the viewer, and use this to view the server. You can then see your desktop from any Java-capable browser, unless you are using a proxy to connect to the web. The server listens for HTTP connections on port 5800+display number. So to view display 2 on machine 'snoopy', you would point your web browser at:

http://snoopy:5802/

The applet will prompt you for your password, and should then display the desktop.
 


22 Response to 'VNC - Virtual Network Computing Basics'
  1. Anonymous
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1355741536494#c7566117722894520837'> December 17, 2012 at 4:22 PM

    I want reading by means of and I conceive this website got some genuinely utilitarian stuff on it!
    Virtual Network

     

  2. Unknown
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1398851141448#c1570874741907542022'> April 30, 2014 at 3:15 PM

    Very informative post. Keep up the good work. I would really look forward to your other posts

    Dell - 13.3" Vostro Notebook - 6 GB Memory - 500 GB Hard Drive

    Dell - 13.3" Vostro Notebook - 4 GB Memory - 500 GB Hard Drive

     

  3. pavankanna
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1536058113958#c938579854329282024'> September 4, 2018 at 4:18 PM

    Grateful to you, for sharing those wonderful expressive acknowledgments. I'll try to do some an incentive in reacting; there's an unprecedented course of action that you've pressed in articulating the fundamental goals, as you charmingly put it. Keep Sharing
    Tableau online training in India, USA, Uk
    Tableau online training in Australia, Canada, Dubai.

     

  4. Nina Athena
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1553067259118#c8475328300697227006'> March 20, 2019 at 1:04 PM

    I think a lot of people may think of hiring an agency that provides web hosting services but it is advisable if they at least know the first thing about web hosting so it will be easier. Thanks for the info.

     

  5. Durga IT Solutions
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1565691232712#c2713692515507435466'> August 13, 2019 at 3:43 PM

    This comment has been removed by the author.

     

  6. Vishal DurgaIT
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1565699446239#c1403917690565715725'> August 13, 2019 at 6:00 PM

    This comment has been removed by the author.

     

  7. mamta
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1595328293644#c5283151423088510253'> July 21, 2020 at 4:14 PM

    Nicely you explained everything in your article. Thanks for your information; this is nice and helpful… Definitely going to share this article to my friends.
    Switzerland VPS Hosting

     

  8. Anonymous
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1595655032753#c3535132246507178997'> July 25, 2020 at 11:00 AM

    Wonderful I like this!!!!!!!!!! Hello guys, I want to tell you that this is an awesome blog and which you have written in this blog, each and every word is also great. Nice dear!! Thanks to sharing with us! Thanks a lot, dear!!!!!!!!!
    India VPS Hosing

     

  9. DevOps
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1596782962906#c6411695018592475631'> August 7, 2020 at 12:19 PM

    Thanks for sharing the valuable information. Keep on sharing.
    AWS Training
    AWS Online Training
    Amazon Web Services Online Training
    AWS Training in Hyderabad
    AWS Training in Ameerpet

     

  10. SergioSimmons
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1613665048121#c1238861647463732754'> February 18, 2021 at 9:47 PM

    Heya i am for the first time here. I found this board and I to find It truly useful & it helped me out a lot. I'm hoping to present one thing again and help others such as you helped me.Contact centre as service

     

  11. EliteM
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1616234176345#c3523463701054920438'> March 20, 2021 at 3:26 PM

    Thanks for sharing valuable information.
    Elite Mantra
    Software Company in Mumbai

     

  12. Rabart
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1623411893077#c1216626882486770925'> June 11, 2021 at 5:14 PM

    Great Content. It will useful for knowledge seekers. Keep sharing your knowledge through this kind of article.
    Power BI Course in Chennai

     

  13. karthik
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1623834001269#c7889231257551548219'> June 16, 2021 at 2:30 PM

    you have written an excellent blog.. keep sharing your knowledge...
    Google Cloud Training in Chennai

     

  14. IVR Call Center Solutions
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1630508682167#c8839669492923891688'> September 1, 2021 at 8:34 PM

    Really myself to say something about it.You’re doing a great job.Keep it up
    call center software
    Call Center Solutions
    IVRS Software

     

  15. Shreya Sharma
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1634527072285#c1482279371808015390'> October 18, 2021 at 8:47 AM

    "Such a informative blog! Really appreciate it.
    Our cloud-based collaboration solutions can help you improve end-user productivity and optimize operations costs. We have developed these solutions on m365 cloud services
    and SharePoint services."

     

  16. Anonymous
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1649346190713#c1583195996597518360'> April 7, 2022 at 9:13 PM

    Networking Inside Out: Vnc - Virtual Network Computing Basics >>>>> Download Now

    >>>>> Download Full

    Networking Inside Out: Vnc - Virtual Network Computing Basics >>>>> Download LINK

    >>>>> Download Now

    Networking Inside Out: Vnc - Virtual Network Computing Basics >>>>> Download Full

    >>>>> Download LINK L2

     

  17. Surya
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1656747765460#c6677324730044065290'> July 2, 2022 at 1:12 PM

    Thank you for this blog. It is very useful. Share more like this.


    Java Training in Bangalore
    Java Course in Bangalore


     

  18. raghu
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1657889993218#c2603316461083554351'> July 15, 2022 at 6:29 PM

    Thank you for this blog. This is very informative.
    PHP Training in Chennai
    PHP Training in Bangalore
    PHP Certification Online

     

  19. Geetha
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1657974948426#c7207909948459323944'> July 16, 2022 at 6:05 PM

    Nice blog. It is very informative.
    RPA Training in Chennai
    RPA Training In Bangalore
    RPA Training Online

     

  20. Geetha
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1658139689839#c6863155080577171000'> July 18, 2022 at 3:51 PM

    Very great blog. This is very informative.

    Artificial Intelligence Course in Chennai
    Artificial Intelligence Course In Bangalore
    Best AI Courses Online

     

  21. nisha
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1664792275218#c5175951813641400461'> October 3, 2022 at 3:47 PM

    Thank you for this blog. It is very useful. Share more like this.
    PHP Training in Chennai
    PHP Online Training
    PHP Training in Bangalore


     

  22. nisha
    https://sharannetwork.blogspot.com/2011/07/vnc-virtual-network-computing-basics.html?showComment=1665051894190#c800875382947170430'> October 6, 2022 at 3:54 PM

    Thank you for this blog. It is very useful. Share more like this.
    Salesforce Training in Chennai
    salesforce course online

     

Post a Comment