How to solve X11vnc not working on Ubuntu 20.04
To solve issues with X11vnc on Ubuntu 20.04, you can try the following steps:
- Make sure that the X11vnc package is installed on your system. You can check this by running the following command:
dpkg -l | grep x11vnc
If the package is not installed, you can install it by running the following command:
 sudo apt-get install x11vnc
- Check if the X11vnc server is running. You can do this using this command:
ps aux | grep x11vnc
If the X11vnc server is not running, you can start it by using the following command:
x11vnc -display :0
- Ensure that your system’s firewall is not blocking connections to the X11vnc server. You can check the firewall rules by running the following command:
sudo ufw status
If the firewall is enabled and blocking connections to the X11vnc server, you can allow connections by running the following command:
sudo ufw allow 5900/tcp

- DISPLAY environment variable should be set correctly. You can check the value of this variable by running the following command:
echo $DISPLAY
The value of this variable should be “:0”. If it is not set correctly, you can set it by running the following command:
export DISPLAY=:0
- Make sure that the X11vnc client is connected to the correct IP address and port. The default IP address is “localhost” and the default port is 5900. You can specify a different IP address or port by using the “-remote” and “-rfbport” options when starting the X11vnc client.
- Check the logs for any error messages that might indicate the cause of the issue. The X11vnc log file is usually located at “/var/log/x11vnc.log”.
I hope these steps help!
Also Read: Puppy Linux