-
Download and Install VNC Server and VNC Viewer
VNC Server (server side, installed on the controlled computer):
-
Visit the RealVNC official website: https://www.realvnc.com/
2. Choose the corresponding VNC Server download according to your operating system (Windows, macOS, or Linux, etc.).
3. Install the downloaded package, following the prompts to complete the installation, usually by clicking “Next” until installation is complete.
VNC Viewer (client side, installed on the controlling computer):
-
Find the VNC Viewer download page on the RealVNC official website.
2. Download the version of VNC Viewer suitable for your operating system.
3. The installation process is similar to VNC Server, just follow the installation wizard.
2. Start VNC Server on the controlled computer:
• For Windows, start VNC Server from the Start menu or desktop shortcut.
• For Mac or Linux, start the VNC Server service using the terminal or graphical interface, following the instructions during installation.
3. Configure VNC
In VNC Server, you may need to configure as follows:
• Set access permissions: allow which IP addresses or users can connect.
• Set a password: set an access password for VNC connections to enhance security.
• Confirm port: verify the port number that VNC listens on, usually defaulting to 5900 or 59022.
4. Get the IP address of the controlled computer
• On the controlled computer, check the IP address, you can use the command prompt (use ipconfig in Windows, ifconfig in Linux or macOS).
5. Use VNC Viewer to connect from the controlling computer:
1. Open VNC Viewer and enter the IP address of the controlled computer.
2. Enter the connection port (if not default, specify it manually) and password.
3. Click “Connect”.
6. Operations after connection is established
• After successfully connecting, you will see the desktop of the controlled computer and can operate it like a local computer.
• When closing, close the VNC Viewer window normally or disconnect from VNC Server.
Notes:
• Confirming permissions and passwords is very important, ensure that only authorized users can access.
• The network environment needs to be smooth, firewalls and routers may need to open corresponding ports.
• Regularly update VNC software to maintain security.
For Raspberry Pi 4B
1. Open VNC Service
First, log in to the Raspberry Pi command line terminal using a monitor keyboard or remote putty, and enter the following command to open the Raspberry Pi settings:
sudo raspi-config
Select option 5 Interfacing Options in the pop-up interface
Next, select P3 VNC
Click Yes to enable VNC service
After successfully opening, there will be a prompt The VNC Server is enabled, press OK
2. Install VNC Viewer
Double-click to open the EXE package
Select the language, then follow the prompts to install.
3. VNC Remote Login
Check IP
Enter the command config in the terminal to see the IP address, the Raspberry Pi is already connected to WiFi
Open the software interface
In the following VNC Server, enter the Raspberry Pi’s IP address, Name can be the Raspberry Pi username or any custom input, here using VNC Server: 192.168.1.181, Name: pi as an example.
After entering, click OK, then double-click the generated display icon:
A security prompt will pop up, just click Continue to proceed
Next, enter the username and password to log in to the Raspberry Pi, check “Remember Password” for easy next login:
Click OK to log in successfully, and the successful login interface.