Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Networking and servers • VNC Viewer cannot connect to Raspberry Pi 5 running Debian "Trixie" with WayVNC

$
0
0
I am trying to connect VNC Viewer on my PC to my Raspberry Pi 5 running Debian "Trixie".

Here is my situation so far:

* VNC mode is enabled on the Pi via raspi-config.
* I can access the Pi GUI using Raspberry Pi Connect.
* SSH to the Pi works perfectly.
* From my MacBook, I can ping the Pi, and from the Pi, I can ping my PC.
* TCP port 5900 is open on the Pi.

My VNC / WayVNC configuration (/etc/wayvnc/config):

Code:

use_relative_paths=trueenable_auth=trueenable_pam=trueaddress=::private_key_file=tls_key.pemcertificate_file=tls_cert.pemrsa_private_key_file=rsa_key.pem
Netstat output on the Pi:

Code:

tcp6       0      0 :::5900                 :::*                    LISTEN      1267/wayvnc
Problem:
Despite all of the above, VNC Viewer cannot connect from my PC.

The error in VNC Viewer is: "No route to host is known".

Interestingly, the VNC connection works from the Pi itself using Raspberry Pi Connect.

I suspect it might have to do with WayVNC only listening on IPv6 (tcp6) instead of IPv4.
I am unsure how to properly configure WayVNC to accept connections from my PC over IPv4 while keeping authentication enabled.

What I tried:

* Restarting WayVNC (systemctl restart wayvnc)
* Checking network connectivity
* Verifying port 5900 is open
* Changed "address=::" in the config file to "listen=0.0.0.0 port=5900" but didn't worked out

Question:

How can I configure WayVNC / VNC on my Raspberry Pi so that VNC Viewer on my PC can connect over IPv4?
Is there a proper configuration to allow both IPv4 connections and authentication, or do I need to change something else?

0
Post actions

Statistics: Posted by quinten — Thu Jan 15, 2026 9:41 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles