I have typical home LAN, with a Ubuntu desktop and Windows 10 desktop both on same LAN. I'm trying to get VNC access from the Windows machine to control the desktop of Ubuntu computer (Ubuntu 18.04 normal desktop installation). I keep getting a connection refused message when using VNC Viewer on the Windows machine.
I followed the instructions to enable screen sharing from the ubuntu systems menu, tried both the required password and the ask for access option. And the on switches for sharing and for the ethernet network is on. ss -lnt shows the port is opened: ''' LISTEN 0 5 [::1]:5900 [::]:* ''' On the Real VNC viewer side, I have the correct IP address and port is 5900. I'm able to VNC into my raspberry pi, and I'm able to ssh from the windows machine into the Ubuntu machine. No luck with VNC.
In the VNC viewer settings, I've tried adding port number to IP, like this 192.168.1.178:5900, and I've tried adding a :1 instead of port for desktop number. I've also tried just plane IP address. None of that has worked.
VNC Viewer setting:
Connection refused error:
Reference:
https://linuxconfig.org/ubuntu-remote-desktop-18-04-bionic-beaver-linux
ss
command output seems to show the service listening on the IPv6 interface, however you appear to be trying to connect via IPv4. Are you sure it is actually listening on the IPv4 interface as well?